From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28137 invoked from network); 19 Sep 2021 18:14:57 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 19 Sep 2021 18:14:57 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id d1b4d72f for ; Sun, 19 Sep 2021 13:14:55 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id b93bfb49 for ; Sun, 19 Sep 2021 13:14:55 -0500 (EST) Date: Sun, 19 Sep 2021 13:14:55 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: isspace(3) requires an unsigned argument; bug reported by Thomas X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- isspace(3) requires an unsigned argument; bug reported by Thomas Klausner Modified Files: -------------- mandoc: soelim.c Revision Data ------------- Index: soelim.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/soelim.c,v retrieving revision 1.5 retrieving revision 1.6 diff -Lsoelim.c -Lsoelim.c -u -p -r1.5 -r1.6 --- soelim.c +++ soelim.c @@ -104,16 +104,16 @@ soelim_file(FILE *f, int flag) } walk = line + 3; - if (!isspace(*walk) && ((flag & C_OPTION) == 0)) { + if (!isspace((unsigned char)*walk) && (flag & C_OPTION) == 0) { printf("%s", line); continue; } - while (isspace(*walk)) + while (isspace((unsigned char)*walk)) walk++; cp = walk; - while (*cp != '\0' && !isspace(*cp)) + while (*cp != '\0' && !isspace((unsigned char)*cp)) cp++; *cp = 0; if (cp < line + linelen) -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv