source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Ensure that isalnum is called with unsigned char argument.
@ 2010-07-25 19:05 joerg
  0 siblings, 0 replies; only message in thread
From: joerg @ 2010-07-25 19:05 UTC (permalink / raw)
  To: source

Log Message:
-----------
Ensure that isalnum is called with unsigned char argument.

Modified Files:
--------------
    mdocml:
        mandoc.c

Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /home/joerg/cvsroot/mdocml/mandoc.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -Lmandoc.c -Lmandoc.c -u -p -r1.26 -r1.27
--- mandoc.c
+++ mandoc.c
@@ -337,7 +337,7 @@ mandoc_eos(const char *p, size_t sz, int
 			found = 1;
 			break;
 		default:
-			return(found && (!enclosed || isalnum(*q)));
+			return(found && (!enclosed || isalnum((unsigned char)*q)));
 		}
 	}
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

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

only message in thread, other threads:[~2010-07-25 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-25 19:05 mdocml: Ensure that isalnum is called with unsigned char argument joerg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).