mirror of
https://github.com/alrayyes/st.git
synced 2024-11-29 14:06:21 +00:00
Add newline in error messages
--- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This commit is contained in:
parent
e3671006db
commit
111199cf22
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -363,14 +363,14 @@ void *
|
||||||
xmalloc(size_t len) {
|
xmalloc(size_t len) {
|
||||||
void *p = malloc(len);
|
void *p = malloc(len);
|
||||||
if(!p)
|
if(!p)
|
||||||
die("Out of memory");
|
die("Out of memory\n");
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
xrealloc(void *p, size_t len) {
|
xrealloc(void *p, size_t len) {
|
||||||
if((p = realloc(p, len)) == NULL)
|
if((p = realloc(p, len)) == NULL)
|
||||||
die("Out of memory");
|
die("Out of memory\n");
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue