tAdd newline in error messages - st - [fork] customized build of st, the simple… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 111199cf226b33f12e6ee3e66e50fbe5c3566e33 | |
parent e3671006dba1c21316c570e11d6688f5513fb44e | |
Author: Roberto E. Vargas Caballero <[email protected]> | |
Date: Mon, 17 Sep 2012 22:11:28 +0200 | |
Add newline in error messages | |
--- | |
st.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
Diffstat: | |
M st.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -363,14 +363,14 @@ void * | |
xmalloc(size_t len) { | |
void *p = malloc(len); | |
if(!p) | |
- die("Out of memory"); | |
+ die("Out of memory\n"); | |
return p; | |
} | |
void * | |
xrealloc(void *p, size_t len) { | |
if((p = realloc(p, len)) == NULL) | |
- die("Out of memory"); | |
+ die("Out of memory\n"); | |
return p; | |
} | |