replace use of gnulib snprintf by g_snprintf

Glib implementation follows the ISO C99 standard so it's safe to replace
the gnulib implementation.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina
2019-11-13 14:53:42 +01:00
parent 8addef2bef
commit 43b01ef2d6
39 changed files with 188 additions and 188 deletions

View File

@@ -99,7 +99,7 @@ VIR_MOCK_IMPL_RET_ARGS(virFileMakePath, int,
{
/* replace log path with a writable directory */
if (strstr(path, "/log/")) {
snprintf((char*)path, strlen(path), ".");
g_snprintf((char*)path, strlen(path), ".");
return 0;
}
return real_virFileMakePath(path);