OSDN Git Service

Extended internal buffer to avoid overflow in English diary entry about player's...
authorEric Branlund <ebranlund@fastmail.com>
Tue, 7 Apr 2020 16:36:11 +0000 (09:36 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 7 Apr 2020 16:36:11 +0000 (09:36 -0700)
src/effects.c

index a97a2ec..b1c13a4 100644 (file)
@@ -5191,7 +5191,7 @@ int take_hit(int damage_type, int damage, cptr hit_from, int monspell)
                        }
                        else
                        {
-                               char buf[10];
+                               char buf[20];
 
                                if (p_ptr->inside_arena)
 #ifdef JP