source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: isspace(3) requires an unsigned argument; bug reported by Thomas
@ 2021-09-19 18:14 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2021-09-19 18:14 UTC (permalink / raw)
  To: source

Log Message:
-----------
isspace(3) requires an unsigned argument;
bug reported by Thomas Klausner <wiz at NetBSD>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-19 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 18:14 mandoc: isspace(3) requires an unsigned argument; bug reported by Thomas schwarze

source@mandoc.bsd.lv

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/mandoc-source

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 mandoc-source mandoc-source/ https://inbox.vuxu.org/mandoc-source \
		source@mandoc.bsd.lv
	public-inbox-index mandoc-source

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git