2396145dc9
Fix format string vulnerability. http://www.openpkg.com/security/advisories/OpenPKG-SA-2006.044.html via Han Boetes
22 lines
585 B
Plaintext
22 lines
585 B
Plaintext
$OpenBSD: patch-file_c,v 1.4 2007/01/01 23:38:51 naddy Exp $
|
|
--- file.c.orig Fri Apr 16 20:47:19 2004
|
|
+++ file.c Tue Jan 2 00:24:48 2007
|
|
@@ -7799,7 +7799,7 @@ inputAnswer(char *prompt)
|
|
ans = inputChar(prompt);
|
|
}
|
|
else {
|
|
- printf(prompt);
|
|
+ printf("%s", prompt);
|
|
fflush(stdout);
|
|
ans = Strfgets(stdin)->ptr;
|
|
}
|
|
@@ -7891,7 +7891,7 @@ uncompress_stream(URLFile *uf, char **sr
|
|
uf->scheme = SCM_LOCAL;
|
|
}
|
|
UFhalfclose(uf);
|
|
- uf->stream = newFileStream(f1, (void (*)())pclose);
|
|
+ uf->stream = newFileStream(f1, (void (*)())fclose);
|
|
}
|
|
|
|
static FILE *
|