Module Name:    src
Committed By:   ryo
Date:           Mon Dec 26 08:00:13 UTC 2022

Modified Files:
        src/usr.sbin/tprof: tprof.c

Log Message:
fixed parsing of event options.
if event option was specivied, it was stuck in a busy loop.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/tprof/tprof.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/tprof/tprof.c
diff -u src/usr.sbin/tprof/tprof.c:1.19 src/usr.sbin/tprof/tprof.c:1.20
--- src/usr.sbin/tprof/tprof.c:1.19	Mon Dec 26 03:25:55 2022
+++ src/usr.sbin/tprof/tprof.c	Mon Dec 26 08:00:13 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $	*/
+/*	$NetBSD: tprof.c,v 1.20 2022/12/26 08:00:13 ryo Exp $	*/
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.20 2022/12/26 08:00:13 ryo Exp $");
 #endif /* not lint */
 
 #include <sys/atomic.h>
@@ -310,6 +310,7 @@ tprof_parse_event(tprof_param_t *param, 
 				    "invalid option: '%c'", *opt);
 				goto done;
 			}
+			opt++;
 		}
 	} else if (allow_option) {
 		param->p_flags |= TPROF_PARAM_USER;

Reply via email to