diff options
Diffstat (limited to 'xpp/utils/hexfile.c')
-rw-r--r-- | xpp/utils/hexfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/utils/hexfile.c b/xpp/utils/hexfile.c index 1493199..2a01b3f 100644 --- a/xpp/utils/hexfile.c +++ b/xpp/utils/hexfile.c @@ -394,7 +394,7 @@ void process_comment(struct hexdata *hexdata, char buf[]) if((p = strchr(p, ' ')) == NULL) return; p++; - strncpy(hexdata->version_info, p, BUFSIZ - 1); + snprintf(hexdata->version_info, BUFSIZ, "%s", p); if((p = strchr(hexdata->version_info, ' ')) != NULL) *p = '\0'; } |