Browse Source

Merge commit 'bb7bd76' into bfgminer

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

+ 1 - 1
miner.c

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