Commit a4df5100 authored by rswindell's avatar rswindell
Browse files

Fix off-by-one error reported by Nelgin:

warning: iteration 9 invokes undefined behavior
parent 12a3f1bb
......@@ -308,7 +308,7 @@ int main(int argc, char **argv)
}
gtk_list_store_move_after(quickstore, &curr, 0);
for(i=1; i<=10; i++) {
for(i=0; i<10; i++) {
gtk_list_store_append(quickstore, &curr);
sprintf(str,"%-2d SL: %-2d F1: %s",i,cfg.val_level[i],ltoaf(cfg.val_flags1[i],flags));
gtk_list_store_set(quickstore, &curr, 0, str, -1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment