diff options
| author | Fabien Costantini <fabien@onepost.net> | 2012-04-21 03:17:40 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2012-04-21 03:17:40 +0000 |
| commit | 8ec35982ee1d5bf07c4feb3737125b719708a0e5 (patch) | |
| tree | d025ba1a2d0fe1cfc9d2d01dd192a9361fea3456 | |
| parent | 226f425443d9983a96c66909df2323928328c8a9 (diff) | |
STR2726 fix. proper cast should be int as specified in isspace documentation, not unsigned char
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/Fl_Type.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index b8b463e81..9b4d88a1c 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -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; } |
