https://gitlab.synchro.net/sbbs/sbbs/-/commit/392ec43a81c6eb45ad523c46
Modified Files:
src/sbbs3/gtkmonitor/gtkmonitor.c
Log Message:
Fix off-by-one error caught by GCC:
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++) {
^~~
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net