Bugzilla Bug 298612: make sure that the int argument that we pass to the

isspace, etc. macros is EOF or between 0 and 255. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177786 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtchang%redhat.com 2005-08-15 22:06:47 +00:00
parent 26357dac6f
commit d5fb72b2db

View File

@ -321,7 +321,7 @@ CreateTagItem(TagItem*ti, unsigned int startline, unsigned int endline)
static PRBool
isAttChar(char c)
isAttChar(int c)
{
return (isalnum(c) || c == '/' || c == '-');
}
@ -737,7 +737,7 @@ FB_GetChar(FileBuffer *fb)
storedOffset = PR_Seek(fb->fd, 0, PR_SEEK_CUR);
retval = fb->buf[fb->curIndex++];
retval = (unsigned char) fb->buf[fb->curIndex++];
if (retval == '\n')
fb->lineNum++;