From: oetiker Date: Tue, 25 Mar 2008 22:57:42 +0000 (+0000) Subject: cast size_t to int to avoid warning -- Florian octo Forster X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e295d8b25c7898827a525f1a772fcb1b297781e8;p=rrdtool-all.git cast size_t to int to avoid warning -- Florian octo Forster git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1317 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 6e1154ac..0e847869 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -4084,7 +4084,7 @@ void rrd_graph_options( if (size > 0) { im->text_prop[propidx].size = size; } - if (strlen(prop) > end) { + if ((int) strlen(prop) > end) { if (prop[end] == ':') { strncpy(im->text_prop[propidx].font, prop + end + 1, 255);