From: Andrew Dunstan Date: Wed, 27 Apr 2011 14:02:21 +0000 (-0400) Subject: Use an explicit format string to keep the compiler happy. X-Git-Tag: REL9_1_BETA1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c43d0791ac5fb765a088d41564cd44747aef42d8;p=postgresql Use an explicit format string to keep the compiler happy. --- diff --git a/src/backend/port/win32/security.c b/src/backend/port/win32/security.c index f5e16052d8..e2a2406fe6 100644 --- a/src/backend/port/win32/security.c +++ b/src/backend/port/win32/security.c @@ -48,7 +48,7 @@ pgwin32_is_admin(void) if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenGroups, &InfoBuffer, errbuf, sizeof(errbuf))) { - write_stderr(errbuf); + write_stderr("%s", errbuf); exit(1); } @@ -138,7 +138,7 @@ pgwin32_is_service(void) if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenUser, &InfoBuffer, errbuf, sizeof(errbuf))) { - fprintf(stderr, errbuf); + fprintf(stderr, "%s", errbuf); return -1; } @@ -169,7 +169,7 @@ pgwin32_is_service(void) if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenGroups, &InfoBuffer, errbuf, sizeof(errbuf))) { - fprintf(stderr, errbuf); + fprintf(stderr, "%s", errbuf); return -1; }