summaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 663c4dd4d..5dc4141fa 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -943,8 +943,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
p++;
if(*p) {
/* if there's anything more than a plain decimal number */
- *p++ = 0;
rc = sscanf(p, " - %6s", lrange);
+ *p = 0; /* zero terminate to make str2unum() work below */
}
else
rc = 0;