summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-05-06 21:13:02 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-05-06 21:13:02 +0100
commitcd3b4915c3358b93f8dbff531bff82c0cd833c0b (patch)
tree285f3515ff567d3b61da59229892909967f0c712 /dmenu.c
parent210b303941e517a9d7df1cba1e3229165fb4037b (diff)
helpful errors
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index d8ef88f..5be73f7 100644
--- 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));
}
}