summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Scheel <ascheel@redhat.com>2018-09-21 09:21:34 -0400
committerAlexander Scheel <ascheel@redhat.com>2018-09-21 09:21:34 -0400
commit3c45ede9c1657c55a1b0a3ac5d7f11b305793b9e (patch)
treec2b7b98ec14ca6060c233a8075ced7990a7a9ae0
parentc3ca784e901023dbc150203a37d1c2613f4626a1 (diff)
downloadnspr-hg-3c45ede9c1657c55a1b0a3ac5d7f11b305793b9e.tar.gz
Bug 1493155 - strncpy truncation warning in nsinstall.c r=jcj
-rw-r--r--config/nsinstall.c2
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);
}
}