Skip to content

Commit f2fc531

Browse files
ldenningtongitster
authored andcommitted
osx-keychain: fix compiler warning
Update git-credential-osxkeychain.c to remove 'format string is not a string literal (potentially insecure)' compiler warning by treating the string as an argument. Signed-off-by: Lessley Dennington <[email protected]> Acked-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbea4dc commit f2fc531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/credential/osxkeychain/git-credential-osxkeychain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ int main(int argc, const char **argv)
168168
"usage: git credential-osxkeychain <get|store|erase>";
169169

170170
if (!argv[1])
171-
die(usage);
171+
die("%s", usage);
172172

173173
read_credential();
174174

0 commit comments

Comments
 (0)