From: Tobias 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-Tag: 1.3rc2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c4e2e78d2d6e83809fe0b77eeca0ce455eb9561;p=thirdparty%2Frrdtool-1.x.git cast size_t to int to avoid warning -- Florian octo Forster git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1317 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 6e1154ac..0e847869 100644 --- a/src/rrd_graph.c +++ b/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);