projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e1ec3b
)
* fix loop termination trouble
author
Wilfried Göesgens
<willi@citadel.org>
Mon, 14 Jul 2008 19:12:30 +0000
(19:12 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Mon, 14 Jul 2008 19:12:30 +0000
(19:12 +0000)
webcit/preferences.c
patch
|
blob
|
history
diff --git
a/webcit/preferences.c
b/webcit/preferences.c
index 5b47e1659afeacdf8ca2687c3bc2521817029c2d..79ec5d0504427041936c2ffa7d5988156a5b27fa 100644
(file)
--- a/
webcit/preferences.c
+++ b/
webcit/preferences.c
@@
-158,7
+158,7
@@
void save_preferences(void) {
offset = 0;
while (nchars > 0) {
if (n == 0)
- nchars = 7
1
;
+ nchars = 7
0
;
else
nchars = 80;
@@
-170,6
+170,7
@@
void save_preferences(void) {
serv_printf(" %s", ChrPtr(SubBuf));
offset += nchars;
+ nchars = StrLength(Buf) - offset;
n++;
}