Code

cast size_t to int to avoid warning -- Florian octo Forster
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:57:42 +0000 (22:57 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:57:42 +0000 (22:57 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1317 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 6e1154accb2b3482e9984125ec36698fe4928fb4..0e847869a70984e401520abb293916b46530f5c5 100644 (file)
@@ -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);