OSDN Git Service

tag_sizeを1で初期化していたため、初回起動時にNULLポインタを参照したファイル書き込み(write(fd, NULL, 1);)が発生する不具合を修正。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 Apr 2006 04:37:49 +0000 (04:37 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 Apr 2006 04:37:49 +0000 (04:37 +0000)
src/init1.c

index ac77d46..bfcdb7d 100644 (file)
@@ -1034,7 +1034,7 @@ errr init_info_txt(FILE *fp, char *buf, header *head,
        /* Prepare the "fake" stuff */
        head->name_size = 0;
        head->text_size = 0;
-       head->tag_size = 1;
+       head->tag_size = 0;
 
        /* Parse */
        while (0 == my_fgets(fp, buf, 1024))