diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-05-29 17:35:56 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-05-29 17:35:56 -0700 |
commit | 265b0bc9bb12a3eceb1ea39c5250acba94abeea3 (patch) | |
tree | 3838acf674658a3c58c9b394a48260ba79abe681 /popt | |
parent | 13f249a826c655f2a2dd08cc8b3b65eab90e0de3 (diff) | |
download | rsync-265b0bc9bb12a3eceb1ea39c5250acba94abeea3.tar.gz |
Silence a strncpy() warning.
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: |