diff options
Diffstat (limited to 'src/tools/setconf.c')
-rw-r--r-- | src/tools/setconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/setconf.c b/src/tools/setconf.c index b5b3cfb..f146a48 100644 --- a/src/tools/setconf.c +++ b/src/tools/setconf.c @@ -48,7 +48,7 @@ int setconf_main(int argc, char *argv[]) goto cleanup; } strncpy(device->name, argv[1], IFNAMSIZ - 1); - device->name[IFNAMSIZ - 1] = 0; + device->name[IFNAMSIZ - 1] = '\0'; if (ipc_set_device(device) != 0) { perror("Unable to set device"); |