From 012f4af4ba944b224c13fd48aad3b4da74eb5545 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 8 Nov 2002 19:14:25 +0000 Subject: [PATCH] Couple more precautionary buffer-size increases, while we're screwing down this sort of thing. [originally from svn r2203] --- psftp.c | 4 ++-- scp.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/psftp.c b/psftp.c index 6f849d4d..b2904364 100644 --- a/psftp.c +++ b/psftp.c @@ -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:"); diff --git a/scp.c b/scp.c index 5ebcfd2c..df50cd2a 100644 --- a/scp.c +++ b/scp.c @@ -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: ");