Browse Source

Bugfix: _wlog: Allocate enough space for complete copy of log line

Luke Dashjr 12 years ago
parent
commit
bb7bd76732
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -2835,7 +2835,7 @@ void _wlog(const char *str)
 		char *s;
 		
 		newline = true;
-		s = alloca(end);
+		s = alloca(end + 1);
 		memcpy(s, str, end);
 		s[end] = '\0';
 		str = s;