diff options
author | Thomas Haller <thaller@redhat.com> | 2014-02-17 13:14:47 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-02-24 21:35:33 +0100 |
commit | d3a2219cee966b2469b8a457edd3035d876859a8 (patch) | |
tree | 751a6e26dff3a2904b16b3f46ebb0fd196cafbb2 /include | |
parent | 6c0db3107efa6a78f88845035549b72ba5af429a (diff) | |
download | NetworkManager-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.h | 3 |
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); |