blob: 19a0a8072811b6db4e82508ecb3ba6bda9a5f9dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
=== modified file 'src/rrd_graph.c'
--- src/rrd_graph.c 2008-11-04 14:50:21 +0000
+++ src/rrd_graph.c 2008-11-04 14:57:04 +0000
@@ -3508,17 +3508,15 @@
if (size > 0){
im->text_prop[propidx].size=size;
}
- if (strlen(optarg) > end){
- if (optarg[end] == ':'){
- strncpy(im->text_prop[propidx].font,optarg+end+1,255);
+ if (strlen(prop) > end){
+ if (prop[end] == ':'){
+ strncpy(im->text_prop[propidx].font,prop+end+1,255);
im->text_prop[propidx].font[255] = '\0';
} else {
- rrd_set_error("expected : after font size in '%s'",optarg);
+ rrd_set_error("expected after font size in '%s'",prop);
return;
}
}
- /* only run the for loop for DEFAULT (0) for
- all others, we break here. woodo programming */
if (propidx==sindex && sindex != 0) break;
}
} else {
|