From 10bf3bd01982d97ea53c74f4c4b8089013ecef73 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 13 Jun 2005 13:20:45 +0000 Subject: [PATCH] wide chars should better be unsigned git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@638 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index 478d70cc..f4c04efe 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -389,7 +389,7 @@ gfx_string gfx_string_create(gfx_canvas_t *canvas, FT_Face face,const char *text /* conversion did not work, so lets fall back to just use what we got */ string->count=clen-1; for(n=0;text[n] != '\0';n++){ - cstr[n]=text[n]; + cstr[n]=(unsigned char)text[n]; } } #else -- 2.30.2