]> granicus.if.org Git - postgresql/commitdiff
Use an explicit format string to keep the compiler happy.
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 27 Apr 2011 14:02:21 +0000 (10:02 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 27 Apr 2011 14:02:21 +0000 (10:02 -0400)
src/backend/port/win32/security.c

index f5e16052d89a8d7114b8abff28ac43b8dba5ea20..e2a2406fe608ecff0115a6cf6852fa87d4ff5142 100644 (file)
@@ -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;
        }