View | Details | Raw Unified
Collapse All | Expand All

(-) src/rrd_graph.c (-6 / +4 lines)
 Lines 3508-3524    Link Here 
                        if (size > 0){
                        if (size > 0){
                              im->text_prop[propidx].size=size;              
                              im->text_prop[propidx].size=size;              
                      }        
                      }        
                       if (strlen(optarg) > end){
                       if (strlen(prop) > end){
                          if (optarg[end] == ':'){
                          if (prop[end] == ':'){
                             strncpy(im->text_prop[propidx].font,optarg+end+1,255);
                             strncpy(im->text_prop[propidx].font,prop+end+1,255);
                             im->text_prop[propidx].font[255] = '\0';
                             im->text_prop[propidx].font[255] = '\0';
                          } else {
                          } else {
                             rrd_set_error("expected : after font size in '%s'",optarg);
                             rrd_set_error("expected after font size in '%s'",prop);
                            return;
                            return;
                          }
                          }
                      }
                      }
                      /* only run the for loop for DEFAULT (0) for
                         all others, we break here. woodo programming */
                      if (propidx==sindex && sindex != 0) break;
                      if (propidx==sindex && sindex != 0) break;
                  }
                  }
                } else {
                } else {