projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96bb2c
)
fdisk: placate warning of strncpy not copying NUL byte
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Jun 2018 13:44:58 +0000
(15:44 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Jun 2018 13:44:58 +0000
(15:44 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk_sgi.c
patch
|
blob
|
history
diff --git
a/util-linux/fdisk_sgi.c
b/util-linux/fdisk_sgi.c
index 30def09c63ebdd67d29d706386dfd6d5c6b025be..1cf0af5cc3f9f3156007c5013042c8dacccef8c3 100644
(file)
--- a/
util-linux/fdisk_sgi.c
+++ b/
util-linux/fdisk_sgi.c
@@
-425,7
+425,7
@@
create_sgiinfo(void)
/* I keep SGI's habit to write the sgilabel to the second block */
sgilabel->directory[0].vol_file_start = SGI_SSWAP32(2);
sgilabel->directory[0].vol_file_size = SGI_SSWAP32(sizeof(sgiinfo));
-
strn
cpy((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8);
+
mem
cpy((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8);
}
static sgiinfo *fill_sgiinfo(void);