Improvement in updatestatus

This commit is contained in:
Ashish Kumar Yadav 2021-02-11 20:41:01 +05:30
parent 59fb64655f
commit 20395ec3da

View file

@ -241,12 +241,13 @@ updatestatus()
{
static char statustext[STATUSLENGTH + DELIMITERLENGTH];
char *s = statustext;
Block *block;
if (!dirtyblock)
return;
for (Block *block = blocks; block < dirtyblock; block++)
for (block = blocks; block < dirtyblock; block++)
s += block->length;
for (Block *block = dirtyblock; block->pathu; block++) {
for (; block->pathu; block++) {
memcpy(s, block->curtext, block->length);
s += block->length;
}