]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - scp.c
Couple more precautionary buffer-size increases, while we're
[PuTTY.git] / scp.c
diff --git a/scp.c b/scp.c
index 5ebcfd2c9f704ae4e2ffc337d01ce28eecd217b6..df50cd2ab884d45cd45b5a1a279ba5acdb05d7e6 100644 (file)
--- 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: ");