projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834a781
)
Fix off-by-one
author
Colin Leroy
<colin@colino.net>
Thu, 5 Jun 2014 14:50:42 +0000
(16:50 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 5 Jun 2014 14:50:42 +0000
(16:50 +0200)
src/account.c
patch
|
blob
|
history
diff --git
a/src/account.c
b/src/account.c
index a90f370b3dbcdf52c0d5152ada573b51dd740401..f1eeeb19516ddb5e30a78838b63b55f84fc971f3 100644
(file)
--- a/
src/account.c
+++ b/
src/account.c
@@
-210,7
+210,7
@@
void account_read_config_all(void)
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (!strncmp(buf, "[Account: ", 10)) {
strretchomp(buf);
- memmove(buf, buf + 1, strlen(buf));
+ memmove(buf, buf + 1, strlen(buf)
- 1
);
buf[strlen(buf) - 1] = '\0';
debug_print("Found label: %s\n", buf);
ac_label_list = g_slist_append(ac_label_list,