diff options
Diffstat (limited to 'app/proc_info/main.c')
-rw-r--r-- | app/proc_info/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/proc_info/main.c b/app/proc_info/main.c index 64fbbd0f..875d91ea 100644 --- a/app/proc_info/main.c +++ b/app/proc_info/main.c @@ -188,7 +188,7 @@ proc_info_preparse_args(int argc, char **argv) proc_info_usage(prgname); return -1; } - strncpy(host_id, argv[i+1], sizeof(host_id)); + snprintf(host_id, sizeof(host_id), "%s", argv[i+1]); } } |