aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorAndreas Schwab2008-12-22 09:48:21 +0000
committerAndreas Schwab2008-12-22 09:48:21 +0000
commit8b1463121ee4758f36e3fb78e3afb764ef6fea0e (patch)
tree6a5bc9df405b8d9e04631ba3ed3c319a6d63d639 /src/buffer.c
parent56f2de103fd8ee430ae3d2f6a1b83d4aa2012f90 (diff)
downloademacs-8b1463121ee4758f36e3fb78e3afb764ef6fea0e.tar.gz
emacs-8b1463121ee4758f36e3fb78e3afb764ef6fea0e.zip
* buffer.c (init_buffer): Use realloc instead of xrealloc.
* gtkutil.c (free_widget_value): Use xfree instead of free.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 50db471ae12..110cb4f7faf 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5343,7 +5343,9 @@ init_buffer ()
5343 if (!(IS_DIRECTORY_SEP (pwd[len - 1]))) 5343 if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
5344 { 5344 {
5345 /* Grow buffer to add directory separator and '\0'. */ 5345 /* Grow buffer to add directory separator and '\0'. */
5346 pwd = (char *) xrealloc (pwd, len + 2); 5346 pwd = (char *) realloc (pwd, len + 2);
5347 if (!pwd)
5348 fatal ("`get_current_dir_name' failed: %s\n", strerror (errno));
5347 pwd[len] = DIRECTORY_SEP; 5349 pwd[len] = DIRECTORY_SEP;
5348 pwd[len + 1] = '\0'; 5350 pwd[len + 1] = '\0';
5349 } 5351 }