Skip to content
  • Rob Swindell's avatar
    Fix off-by-one error caught by GCC: · 392ec43a
    Rob Swindell authored
    gtkmonitor.c:156:79: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
       sprintf(str,"%-2d  SL: %-2d  F1: %s",i,cfg.val_level[i],ltoaf(cfg.val_flags1[i],flags));
                                                                     ~~~~~~~~~~~~~~^~~
    gtkmonitor.c:151:2: note: within this loop
      for(i=1; i<=10; i++) {
      ^~~
    392ec43a