Browse code

bb11441 - fixing off by one OOB write in htmlnorm

Mickey Sola authored on 2016/01/13 04:30:41
Showing 1 changed files
... ...
@@ -618,7 +618,7 @@ static void screnc_decode(unsigned char *ptr, struct screnc_state *s)
618 618
 		remaining = strlen((const char*)ptr) + 1;
619 619
 		memmove(dst, ptr, remaining);
620 620
 	} else {
621
-		*dst = '\0';
621
+		*ptr = '\0';
622 622
 	}
623 623
 }
624 624