diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-18 15:03:46 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-18 15:03:46 +0000 |
commit | 7f17b26a45c3e715e4b9e4b4bbc603c424b54e09 (patch) | |
tree | 794701a6faa040c73f71d8f12b5569a3c1780499 /plugins/mate | |
parent | c022322b2653fbc12865ebb5cd551680702c8609 (diff) |
From Jakub Zawadzki: g_gnprintf & etc: Use size of buffer [not size -1];
- As suggested actually use sizeof(...) rather than a numeric constant.
- g_snprintf() and g_vsnprintf() since glib 1.3.12 do not return -1.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27772 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/mate')
-rw-r--r-- | plugins/mate/mate_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mate/mate_util.c b/plugins/mate/mate_util.c index caec284d16..ade8fb2285 100644 --- a/plugins/mate/mate_util.c +++ b/plugins/mate/mate_util.c @@ -242,7 +242,7 @@ gchar* scs_subscribe_printf(SCS_collection* c, gchar* fmt, ...) { static gchar buf[SCS_HUGE_SIZE]; va_start( list, fmt ); - g_vsnprintf(buf, SCS_HUGE_SIZE-1 ,fmt, list); + g_vsnprintf(buf, SCS_HUGE_SIZE, fmt, list); va_end( list ); return scs_subscribe(c,buf); |