Skip to content

Commit

Permalink
STR2726 fix. proper cast should be int as specified in isspace docume…
Browse files Browse the repository at this point in the history
…ntation, not unsigned char

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
fab672000 committed Apr 21, 2012
1 parent 226f425 commit 8ec3598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluid/Fl_Type.cxx
Expand Up @@ -594,9 +594,9 @@ int storestring(const char *n, const char * & p, int nostrip) {
undo_checkpoint();
int length = 0;
if (n) { // see if blank, strip leading & trailing blanks
if (!nostrip) while (isspace(*n)) n++;
if (!nostrip) while (isspace((int) *n)) n++;
const char *e = n + strlen(n);
if (!nostrip) while (e > n && isspace(*(e-1))) e--;
if (!nostrip) while (e > n && isspace((int)*(e-1))) e--;
length = e-n;
if (!length) n = 0;
}
Expand Down

0 comments on commit 8ec3598

Please sign in to comment.