diff options
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; |