* fix loop termination trouble
authorWilfried Göesgens <willi@citadel.org>
Mon, 14 Jul 2008 19:12:30 +0000 (19:12 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 14 Jul 2008 19:12:30 +0000 (19:12 +0000)
webcit/preferences.c

index 5b47e1659afeacdf8ca2687c3bc2521817029c2d..79ec5d0504427041936c2ffa7d5988156a5b27fa 100644 (file)
@@ -158,7 +158,7 @@ void save_preferences(void) {
                                offset = 0;
                                while (nchars > 0) {
                                        if (n == 0)
-                                               nchars = 71;
+                                               nchars = 70;
                                        else 
                                                nchars = 80;
 
@@ -170,6 +170,7 @@ void save_preferences(void) {
                                                serv_printf(" %s", ChrPtr(SubBuf));
 
                                        offset += nchars;
+                                       nchars = StrLength(Buf) - offset;
                                        n++;
                                }