Modify makedefs to use dynamic buffers for reading.

This will prevent crashing due to excessively long lines.
This commit is contained in:
Sean Hunt
2015-05-24 21:40:30 +09:00
committed by nhmall
parent f477645774
commit 49b9f6c926
4 changed files with 125 additions and 63 deletions

View File

@@ -13,7 +13,6 @@
/* quest text message buffer sizes; used to be hardcoded as 80 and 128, but
have been expanded to allow some slop for block message summary lines */
#define QTEXT_IN_SIZ 100 /* used by both nethack and makedefs */
#define QTEXT_OUTSIZ 200 /* used only by nethack */
struct qtmsg {