Browse Source

Prevent buffer overflow.

Con Kolivas 14 years ago
parent
commit
186666d3d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.c

+ 2 - 2
main.c

@@ -156,8 +156,8 @@ static int accepted, rejected;
 int hw_errors;
 int hw_errors;
 static int total_queued;
 static int total_queued;
 static unsigned int getwork_requested = 0;
 static unsigned int getwork_requested = 0;
-static char current_block[36];
-static char blank[36];
+static char current_block[37];
+static char blank[37];
 
 
 static void applog_and_exit(const char *fmt, ...)
 static void applog_and_exit(const char *fmt, ...)
 {
 {