diff options
Diffstat (limited to 'popt')
-rw-r--r-- | popt/popt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c index ec6f3bd8..5d927f78 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -626,7 +626,7 @@ expandNextArg(/*@special@*/ poptContext con, const char * s) pos = te - t; t = realloc(t, tn); te = t + pos; - strncpy(te, a, alen); te += alen; + memcpy(te, a, alen+1); te += alen; continue; /*@notreached@*/ /*@switchbreak@*/ break; default: |