OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059fa6b
)
k_infoだけname_sizeの領域が足りない時にreallocするようになっていたのを、他と同じくエラーを返すようにした。なぜk_infoだけ特別扱いされていたのか...
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 17 Jan 2002 17:08:05 +0000
(17:08 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 17 Jan 2002 17:08:05 +0000
(17:08 +0000)
src/init1.c
patch
|
blob
|
history
diff --git
a/src/init1.c
b/src/init1.c
index
c949bf6
..
12851a6
100644
(file)
--- a/
src/init1.c
+++ b/
src/init1.c
@@
-1603,13
+1603,7
@@
errr init_k_info_txt(FILE *fp, char *buf)
#ifdef JP
/* Hack -- Verify space */
- if (k_head->name_size + strlen(s) + 8 > fake_name_size)
- {
- fake_name_size += 1000;
-
- /* Reallocate the extra memory */
- k_info = realloc(k_name, fake_name_size);
- }
+ if (k_head->name_size + strlen(s) + 8 > fake_name_size) return (7);
/* Advance and Save the name index */
if (!k_ptr->name) k_ptr->name = ++k_head->name_size;