diff options
author | Russ Cox <rsc@golang.org> | 2020-01-12 15:05:40 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-12 15:07:42 -0500 |
commit | fafa622a5bdf71adfbb4334541c3b65f29c89ca9 (patch) | |
tree | 189d86fb978b151ddf2f303f9c4efab196d79f17 /src/cmd/mk | |
parent | fa325e9b42b0bdfb48857d1958d9fb7ceac55151 (diff) | |
download | plan9port-fafa622a5bdf71adfbb4334541c3b65f29c89ca9.tar.gz plan9port-fafa622a5bdf71adfbb4334541c3b65f29c89ca9.tar.bz2 plan9port-fafa622a5bdf71adfbb4334541c3b65f29c89ca9.zip |
all: fix or silence various gcc warnings
As usual, gcc finds some real problems but also reports a ton
of noise. Fix the problems and quiet the noise.
Diffstat (limited to 'src/cmd/mk')
-rw-r--r-- | src/cmd/mk/archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c index 026641bd..5b0c1d00 100644 --- a/src/cmd/mk/archive.c +++ b/src/cmd/mk/archive.c @@ -202,7 +202,7 @@ atimes(char *ar) name[namelen] = 0; namelen = 0; }else{ - strncpy(name, h.name, sizeof(h.name)); + memmove(name, h.name, sizeof(h.name)); for(i = sizeof(h.name)-1; i > 0 && name[i] == ' '; i--) ; if(name[i] == '/') /* system V bug */ |