git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
replace snprintf with strlcpy without adding extra include
[dpdk.git]
/
app
/
proc-info
/
main.c
diff --git
a/app/proc-info/main.c
b/app/proc-info/main.c
index
b9acfa9
..
3cd5341
100644
(file)
--- a/
app/proc-info/main.c
+++ b/
app/proc-info/main.c
@@
-193,7
+193,7
@@
proc_info_preparse_args(int argc, char **argv)
proc_info_usage(prgname);
return -1;
}
- s
nprintf(host_id, sizeof(host_id), "%s", argv[i+1]
);
+ s
trlcpy(host_id, argv[i + 1], sizeof(host_id)
);
}
}