Xinqi Bao's Git

add braces to single statements so drkhsh doesn't be upset
authorraiz <[email protected]>
Thu, 29 Dec 2016 09:40:43 +0000 (12:40 +0300)
committerraiz <[email protected]>
Thu, 29 Dec 2016 09:40:43 +0000 (12:40 +0300)
slstatus.c

index 1f08514..ac4c962 100644 (file)
@@ -820,8 +820,9 @@ main(int argc, char *argv[])
                                element = smprintf("%s", UNKNOWN_STR);
                                warnx("Failed to format output");
                        }
                                element = smprintf("%s", UNKNOWN_STR);
                                warnx("Failed to format output");
                        }
-                       if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string))
+                       if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string)) {
                                warnx("Output too long");
                                warnx("Output too long");
+                       }
                        free(res);
                        free(element);
                }
                        free(res);
                        free(element);
                }