diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-20 00:33:08 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-20 00:33:08 +0000 |
commit | 7af3b141e02d2c6534f1ea49da575870326ce2db (patch) | |
tree | 4cbddab3e8e8da9f5894c0f7903512deda8957f9 /epan/dissectors/packet-wccp.c | |
parent | 778120f1cc6ba60167840467b1b40bdc273bc06a (diff) |
remove sprintf from v120 and wccp
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15449 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wccp.c')
-rw-r--r-- | epan/dissectors/packet-wccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wccp.c b/epan/dissectors/packet-wccp.c index 10142696bc..9c8adfa2fd 100644 --- a/epan/dissectors/packet-wccp.c +++ b/epan/dissectors/packet-wccp.c @@ -384,7 +384,7 @@ bucket_name(guint8 bucket) if (bucket == 0xff) strcpy(cur, "Unassigned"); else - sprintf(cur, "%u", bucket); + g_snprintf(cur, 10+1, "%u", bucket); return cur; } @@ -967,7 +967,7 @@ assignment_bucket_name(guint8 bucket) if (bucket == 0xff) strcpy(cur, "Unassigned"); else { - sprintf(cur, "%u%s", bucket >> 1, + g_snprintf(cur, 10+1, "%u%s", bucket >> 1, (bucket & 0x01) ? " (Alt)" : ""); } return cur; |