Mercurial > emacs
changeset 100633:5395c014feb8
* buffer.c (init_buffer): Use realloc instead of xrealloc.
* gtkutil.c (free_widget_value): Use xfree instead of free.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 22 Dec 2008 09:48:21 +0000 |
parents | 389db2f016a4 |
children | 2af636c8c9d2 |
files | src/ChangeLog src/buffer.c src/gtkutil.c |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Dec 22 09:40:33 2008 +0000 +++ b/src/ChangeLog Mon Dec 22 09:48:21 2008 +0000 @@ -1,3 +1,8 @@ +2008-12-22 Andreas Schwab <schwab@suse.de> + + * buffer.c (init_buffer): Use realloc instead of xrealloc. + * gtkutil.c (free_widget_value): Use xfree instead of free. + 2008-12-22 Martin Rudalics <rudalics@gmx.at> * frame.c (delete_frame): New function derived from
--- a/src/buffer.c Mon Dec 22 09:40:33 2008 +0000 +++ b/src/buffer.c Mon Dec 22 09:48:21 2008 +0000 @@ -5343,7 +5343,9 @@ if (!(IS_DIRECTORY_SEP (pwd[len - 1]))) { /* Grow buffer to add directory separator and '\0'. */ - pwd = (char *) xrealloc (pwd, len + 2); + pwd = (char *) realloc (pwd, len + 2); + if (!pwd) + fatal ("`get_current_dir_name' failed: %s\n", strerror (errno)); pwd[len] = DIRECTORY_SEP; pwd[len + 1] = '\0'; }