Aaron Marcher
9 years ago
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with
1 additions and
1 deletions
-
slstatus.c
|
|
@ -451,7 +451,7 @@ run_command(const char *cmd) |
|
|
pclose(fp); |
|
|
pclose(fp); |
|
|
buf[sizeof(buf) - 1] = '\0'; |
|
|
buf[sizeof(buf) - 1] = '\0'; |
|
|
|
|
|
|
|
|
if ((nlptr = strstr(buf, "\n")) != NULL) { |
|
|
if ((nlptr = strrchr(buf, '\n')) != NULL) { |
|
|
nlptr[0] = '\0'; |
|
|
nlptr[0] = '\0'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|