aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
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 }