Skip to content

Commit c43d079

Browse files
committed
Use an explicit format string to keep the compiler happy.
1 parent dedcc48 commit c43d079

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/port/win32/security.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pgwin32_is_admin(void)
4848
if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenGroups,
4949
&InfoBuffer, errbuf, sizeof(errbuf)))
5050
{
51-
write_stderr(errbuf);
51+
write_stderr("%s", errbuf);
5252
exit(1);
5353
}
5454

@@ -138,7 +138,7 @@ pgwin32_is_service(void)
138138
if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenUser, &InfoBuffer,
139139
errbuf, sizeof(errbuf)))
140140
{
141-
fprintf(stderr, errbuf);
141+
fprintf(stderr, "%s", errbuf);
142142
return -1;
143143
}
144144

@@ -169,7 +169,7 @@ pgwin32_is_service(void)
169169
if (!pgwin32_get_dynamic_tokeninfo(AccessToken, TokenGroups, &InfoBuffer,
170170
errbuf, sizeof(errbuf)))
171171
{
172-
fprintf(stderr, errbuf);
172+
fprintf(stderr, "%s", errbuf);
173173
return -1;
174174
}
175175

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy