From f859b05c6686b2c5a41fd7805f164229b3c6d7c8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 7 Nov 2018 23:26:55 +0100 Subject: [PATCH] curl: --local-port fix followup Regression by 52db54869e6. Reported-by: infinnovation-dev on github Fixes #3248 Closes #3249 --- src/tool_getparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;