From: Jens Axboe Date: Fri, 27 Oct 2006 12:36:26 +0000 (+0200) Subject: [PATCH] FIO_OPT_RANGE breakage X-Git-Tag: fio-1.8~28 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b6e25da4225ca990f6997d2d60fe96a7b51d4661;p=fio.git [PATCH] FIO_OPT_RANGE breakage After terminating the first string, remember to reset the pointer to the beginning of the string. Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 48703b69..e001eef4 100644 --- a/parse.c +++ b/parse.c @@ -185,6 +185,7 @@ static int handle_option(struct fio_option *o, const char *ptr, void *data) p2 = p1 + 1; *p1 = '\0'; + p1 = ptr; ret = 1; if (!check_range_bytes(p1, &ul1) && !check_range_bytes(p2, &ul2)) {