aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-11-07 23:26:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-11-08 13:59:16 +0100
commitf859b05c6686b2c5a41fd7805f164229b3c6d7c8 (patch)
tree4f2dd0b455da025f50d9bfa7a33e055609b091e0 /src
parent08b1a851cc503f84f737904b4edeab0b8d3264d4 (diff)
curl: --local-port fix followup
Regression by 52db54869e6. Reported-by: infinnovation-dev on github Fixes #3248 Closes #3249
Diffstat (limited to 'src')
-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;