OSDN Git Service

In init.c's dir_create() and create_needed_dirs(), expanded internal fixed-size buffe...
authorEric Branlund <ebranlund@fastmail.com>
Thu, 20 Feb 2020 13:54:11 +0000 (05:54 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Thu, 20 Feb 2020 13:54:11 +0000 (05:54 -0800)
src/init2.c

index 8ef3c78..54dc88a 100644 (file)
@@ -207,7 +207,7 @@ bool dir_create(concptr path)
     return FALSE;
 #else
     const char *ptr;
-    char buf[512];
+    char buf[1024];
 
     /* If the directory already exists then we're done */
     if (dir_exists(path)) return TRUE;
@@ -267,7 +267,7 @@ bool dir_create(concptr path)
  */
 void create_needed_dirs(void)
 {
-    char dirpath[512];
+    char dirpath[1024];
 
     path_build(dirpath, sizeof(dirpath), ANGBAND_DIR_USER, "");
     if (!dir_create(dirpath)) quit_fmt("Cannot create '%s'", dirpath);