diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-03 15:38:20 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-03 15:38:20 +0000 |
commit | fa849b3bb28985b022c11ff5b5a3c867563956e9 (patch) | |
tree | 17d9ec1526a37c793ee3d7cbd031091d1867dd7f /print.c | |
parent | fe1751928ce228617657397d98eb1122ed01db6f (diff) |
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -718,9 +718,7 @@ print_hex_data(print_stream_t *stream, epan_dissect_t *edt) if (multiple_sources) { name = src->name; print_line(stream, 0, ""); - line = g_malloc(strlen(name) + 2); /* <name>:\0 */ - strcpy(line, name); - strcat(line, ":"); + line = g_strdup_printf("%s:", name); print_line(stream, 0, line); g_free(line); } |