aboutsummaryrefslogtreecommitdiff
path: root/netnuke.c
diff options
context:
space:
mode:
Diffstat (limited to 'netnuke.c')
-rw-r--r--netnuke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netnuke.c b/netnuke.c
index 3f75f47..4c2aa41 100644
--- a/netnuke.c
+++ b/netnuke.c
@@ -143,8 +143,8 @@ int nuke(media_t device)
uint64_t size = device.size;
char media[BUFSIZ];
char mediashort[BUFSIZ];
- strncpy(media, device.name, strlen(device.name));
- strncpy(mediashort, device.nameshort, strlen(device.nameshort));
+ memcpy(media, device.name, strlen(device.name)+1);
+ memcpy(mediashort, device.nameshort, strlen(device.nameshort));
/* test with 100MBs worth of data */
if(udef_testmode == true)