shithub: cstory

Download patch

ref: 0c018a9fd600e9ae1cb8792aec247bdb896f45b0
parent: 5f0754b23c87877a5691e280b003879eb61aee49
author: Clownacy <[email protected]>
date: Thu Apr 25 12:26:37 EDT 2019

Deobfuscated null characters

--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -1296,11 +1296,11 @@
 						if (c[0] & 0x80)
 						{
 							c[1] = gTS.data[gTS.p_read + 1];
-							c[2] = 0;
+							c[2] = '\0';
 						}
 						else
 						{
-							c[1] = 0;
+							c[1] = '\0';
 						}
 
 						//Print text