diff options
author | Alexander Scheel <ascheel@redhat.com> | 2018-09-21 09:21:34 -0400 |
---|---|---|
committer | Alexander Scheel <ascheel@redhat.com> | 2018-09-21 09:21:34 -0400 |
commit | 3c45ede9c1657c55a1b0a3ac5d7f11b305793b9e (patch) | |
tree | c2b7b98ec14ca6060c233a8075ced7990a7a9ae0 | |
parent | c3ca784e901023dbc150203a37d1c2613f4626a1 (diff) | |
download | nspr-hg-3c45ede9c1657c55a1b0a3ac5d7f11b305793b9e.tar.gz |
Bug 1493155 - strncpy truncation warning in nsinstall.c r=jcj
-rw-r--r-- | config/nsinstall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/nsinstall.c b/config/nsinstall.c index f1d2cff2..464f0304 100644 --- a/config/nsinstall.c +++ b/config/nsinstall.c @@ -517,7 +517,7 @@ reversepath(char *inpath, char *name, int len, char *outpath) xchdir(".."); } else { cp -= 3; - strncpy(cp, "../", 3); + memcpy(cp, "../", 3); xchdir(buf); } } |