Changeset 123

Show
Ignore:
Timestamp:
05/23/08 03:07:32 (6 months ago)
Author:
matthiasm
Message:

Fixing crash when signed char characters have a negative value (Microsoft issue).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/branches/DyneTK/src/newt_core/NewtPrint.c

    r113 r123  
    166166            return false; 
    167167 
    168         if (! isprint(str[i])) 
     168        if (! isprint((unsigned char)str[i])) 
    169169            return false; 
    170170    } 
     
    267267            NIOFputs(s, f); 
    268268        } 
    269         else if (isprint(c)) 
     269        else if (isprint((unsigned char)c)) 
    270270        { 
    271271            if (unicode)