From cd3b4915c3358b93f8dbff531bff82c0cd833c0b Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Fri, 6 May 2011 21:13:02 +0100 Subject: helpful errors --- dmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmenu.c') 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)); } } -- cgit v1.2.3-13-gbd6f