Fixed for loop in getstatus()
This commit is contained in:
parent
980aab697a
commit
ce861dd798
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ void setupsignals()
|
||||||
void getstatus(char *str)
|
void getstatus(char *str)
|
||||||
{
|
{
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for(int i = 0; i < 5; j+=strlen(statusbar[i++]))
|
for(int i = 0; i < LENGTH(blocks); j+=strlen(statusbar[i++]))
|
||||||
{
|
{
|
||||||
strcpy(str + j, statusbar[i]);
|
strcpy(str + j, statusbar[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue