helpful errors
[dmenu.git] / dmenu.c
diff --git a/dmenu.c b/dmenu.c
index d8ef88f..5be73f7 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -440,9 +440,9 @@ readstdin(void) {
                if((p = strchr(buf, '\n')))
                        *p = '\0';
                if(!(item = calloc(1, sizeof *item)))
-                       eprintf("cannot malloc %u bytes\n", sizeof *item);
+                       eprintf("cannot malloc %u bytes:", sizeof *item);
                if(!(item->text = strdup(buf)))
-                       eprintf("cannot strdup %u bytes\n", strlen(buf)+1);
+                       eprintf("cannot strdup %u bytes:", strlen(buf)+1);
                inputw = MAX(inputw, textw(dc, item->text));
        }
 }