1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-09 13:42:09 -05:00

Couple more precautionary buffer-size increases, while we're

screwing down this sort of thing.

[originally from svn r2203]
This commit is contained in:
Simon Tatham 2002-11-08 19:14:25 +00:00
parent e05f560c21
commit 012f4af4ba
2 changed files with 6 additions and 6 deletions

View File

@ -1446,7 +1446,7 @@ static int verbose = 0;
*/
void fatalbox(char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
strcpy(str, "Fatal:");
@ -1459,7 +1459,7 @@ void fatalbox(char *fmt, ...)
}
void connection_fatal(char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
strcpy(str, "Fatal:");

8
scp.c
View File

@ -157,7 +157,7 @@ static void tell_str(FILE * stream, char *str)
static void tell_user(FILE * stream, char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
vsprintf(str, fmt, ap);
@ -213,7 +213,7 @@ static void gui_update_stats(char *name, unsigned long size,
*/
void fatalbox(char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
strcpy(str, "Fatal: ");
@ -236,7 +236,7 @@ void fatalbox(char *fmt, ...)
}
void connection_fatal(char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
strcpy(str, "Fatal: ");
@ -401,7 +401,7 @@ static void ssh_scp_init(void)
*/
static void bump(char *fmt, ...)
{
char str[0x100]; /* Make the size big enough */
char str[512]; /* Make the size big enough */
va_list ap;
va_start(ap, fmt);
strcpy(str, "Fatal: ");