]> granicus.if.org Git - nethack/commitdiff
piousness lint
authorPatR <rankin@nethack.org>
Sat, 23 Apr 2016 18:57:14 +0000 (11:57 -0700)
committerPatR <rankin@nethack.org>
Sat, 23 Apr 2016 18:57:14 +0000 (11:57 -0700)
include/extern.h
src/pline.c

index 57abce50d88f232b9f63b9d299bfad9df99dd1e2..17d9dc5f4725f034c73585b3e7426c61c314d9d0 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 extern.h        $NHDT-Date: 1459987582 2016/04/07 00:06:22 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.554 $ */
+/* NetHack 3.6 extern.h        $NHDT-Date: 1461437800 2016/04/23 18:56:40 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.557 $ */
 /* Copyright (c) Steve Creps, 1988.                              */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1791,7 +1791,7 @@ E const char *FDECL(align_str, (ALIGNTYP_P));
 E void FDECL(mstatusline, (struct monst *));
 E void NDECL(ustatusline);
 E void NDECL(self_invis_message);
-E char *FDECL(piousness, (boolean, const char *));
+E char *FDECL(piousness, (BOOLEAN_P, const char *));
 E void FDECL(pudding_merge_message, (struct obj *, struct obj *));
 
 /* ### polyself.c ### */
index 85df2118832f5c7426ca516e7cd128c678cdcf3e..0534ba33d7a7c83fdd6e75246964e530b90dd1e0 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 pline.c $NHDT-Date: 1456528597 2016/02/26 23:16:37 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.49 $ */
+/* NetHack 3.6 pline.c $NHDT-Date: 1461437814 2016/04/23 18:56:54 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.51 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -558,8 +558,9 @@ piousness(showneg, suffix)
 boolean showneg;
 const char *suffix;
 {
-    static char buf[BUFSZ];
-    char *pio;
+    static char buf[32]; /* bigger than "insufficiently neutral" */
+    const char *pio;
+
     /* note: piousness 20 matches MIN_QUEST_ALIGN (quest.h) */
     if (u.ualign.record >= 20)
         pio = "piously";