Xinqi Bao's Git

added name to LICENSE
[slstatus.git] / slstatus.c
index 49b14de..f6e8339 100644 (file)
@@ -89,8 +89,7 @@ smprintf(const char *fmt, ...)
 
        ret = malloc(++len);
        if (ret == NULL) {
-               warn("Malloc failed.");
-               return "n/a";
+               err(1, "malloc");
        }
 
        va_start(ap, fmt);
@@ -613,7 +612,7 @@ main(int argc, char *argv[])
                        oflag = 1;
                        break;
                case 'v':
-                       printf("%s version %s (c) 2016 slstatus engineers\n", argv0, VERSION);
+                       printf("slstatus %s (C) 2016 slstatus engineers\n", VERSION);
                        return 0;
                default:
                        usage();