Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix line-wrapping bug in baseconv.
[doldaconnect.git]
/
config
/
baseconv.c
diff --git
a/config/baseconv.c
b/config/baseconv.c
index
d27a8cf
..
56c8d2d
100644
(file)
--- a/
config/baseconv.c
+++ b/
config/baseconv.c
@@
-66,7
+66,7
@@
int main(int argc, char **argv)
if(linelen + buflen > 60) {
fwrite(encbuf, 1, 60 - linelen, stdout);
fwrite("\n", 1, 1, stdout);
-
buflen -= 60 - linelen
;
+
memmove(encbuf, encbuf + 60 - linelen, buflen -= 60 - linelen)
;
}
fwrite(encbuf, 1, buflen, stdout);
linelen += buflen;