This seems more appropriate

This commit is contained in:
Ashish Kumar Yadav 2021-02-10 22:00:09 +05:30
parent 9240ce3fac
commit ea40011a5f

View file

@ -261,10 +261,7 @@ updatestatus()
memcpy(s, block->curtext, block->length); memcpy(s, block->curtext, block->length);
s += block->length; s += block->length;
} }
if (s != statustext) s[s == statustext ? 0 : -DELIMITERLENGTH] = '\0';
*(s - DELIMITERLENGTH) = '\0';
else
*s = '\0';
} }
void void