X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_gfx.c;h=f4c04efe925073637db6565b5cde07ce9697f3f5;hp=478d70cc60dc5375a2e1f84936d052d59b54a6f7;hb=c966bf04b22f45e38ca9d1b318514154b33c367d;hpb=62899aa21f4cc8029325c74d2d016d7554590ccb diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 478d70c..f4c04ef 100644 --- a/src/rrd_gfx.c +++ b/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