From: oetiker Date: Sun, 1 May 2005 09:16:38 +0000 (+0000) Subject: allow for characters over 127 X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=ebb7112c8b334b073c17b5686733cc8470384fae allow for characters over 127 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@457 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 9455d85..3335e91 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -395,7 +395,7 @@ gfx_string gfx_string_create(FT_Face face,const char *text, /* handle the tabs ... have a witespace glyph inserted, but set its width such that the distance of the new right edge is x times tabwidth from 0,0 where x is an integer. */ - char letter = text[n]; + unsigned char letter = text[n]; gottab = 0; if (letter == '\\' && n+1 < string->count && text[n+1] == 't'){ /* we have a tab here so skip the backslash and