aboutsummaryrefslogtreecommitdiffstats
path: root/tap-rpcprogs.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-08 18:50:39 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-08 18:50:39 +0000
commitd615067ecfe859cadfb09c0896864a4bff299d4f (patch)
treeae44175ca8fd23548fcec5833098b535af5e372c /tap-rpcprogs.c
parentb5ff280c656047376ee397671794e3b15e7ac3ae (diff)
various code cleanup:
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15264 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-rpcprogs.c')
-rw-r--r--tap-rpcprogs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap-rpcprogs.c b/tap-rpcprogs.c
index 03ccd7ac3a..9a1980e170 100644
--- a/tap-rpcprogs.c
+++ b/tap-rpcprogs.c
@@ -205,7 +205,7 @@ rpcprogs_draw(void *dummy _U_)
td=0;
}
- sprintf(str,"%s(%d)",rpc_prog_name(rp->program),rp->program);
+ g_snprintf(str, sizeof(str), "%s(%d)",rpc_prog_name(rp->program),rp->program);
printf("%-15s %2d %6d %3d.%05d %3d.%05d %3d.%05d\n",
str,
rp->version,