summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-02-17 13:14:47 +0100
committerThomas Haller <thaller@redhat.com>2014-02-24 21:35:33 +0100
commitd3a2219cee966b2469b8a457edd3035d876859a8 (patch)
tree751a6e26dff3a2904b16b3f46ebb0fd196cafbb2 /include
parent6c0db3107efa6a78f88845035549b72ba5af429a (diff)
downloadNetworkManager-d3a2219cee966b2469b8a457edd3035d876859a8.tar.gz
replace snprintf by g_snprintf
Use the glib wrapper for snprintf. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/nm-test-helpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/nm-test-helpers.h b/include/nm-test-helpers.h
index 91286b5839..cae099a848 100644
--- a/include/nm-test-helpers.h
+++ b/include/nm-test-helpers.h
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <unistd.h>
+#include <glib.h>
static void
FAIL(const char *test_name, const char *fmt, ...)
@@ -31,7 +32,7 @@ FAIL(const char *test_name, const char *fmt, ...)
va_list args;
char buf[500];
- snprintf (buf, 500, "FAIL: (%s) %s\n", test_name, fmt);
+ g_snprintf (buf, 500, "FAIL: (%s) %s\n", test_name, fmt);
va_start (args, fmt);
vfprintf (stderr, buf, args);