From: Emden R. Gansner Date: Fri, 25 Apr 2014 14:45:32 +0000 (-0400) Subject: Fix bug 2444 X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=610bb86d9ab553b6b6f66afc9c4a501a37afc18b;p=graphviz Fix bug 2444 --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 3cb2cfb54..d8b3f2db9 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -3183,6 +3183,7 @@ static field_t *parse_reclbl(node_t * n, int LR, int flag, char *text) char *tmpport = NULL; int maxf, cnt, mode, wflag, ishardspace, fi; textlabel_t *lbl = ND_label(n); + unsigned char uc; fp = NULL; for (maxf = 1, cnt = 0, sp = reclblp; *sp; sp++) { @@ -3209,7 +3210,7 @@ static field_t *parse_reclbl(node_t * n, int LR, int flag, char *text) wflag = TRUE; ishardspace = FALSE; while (wflag) { - if ((*reclblp < ' ') && *reclblp) { /* Ignore non-0 control characters */ + if ((uc = *(unsigned char*)reclblp) && (uc < ' ')) { /* Ignore non-0 control characters */ reclblp++; continue; }