projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6cfe20b
)
Correct fix for the memmove
author
Colin Leroy
<colin@colino.net>
Thu, 5 Jun 2014 15:57:46 +0000
(17:57 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 5 Jun 2014 15:57:46 +0000
(17:57 +0200)
src/account.c
patch
|
blob
|
history
diff --git
a/src/account.c
b/src/account.c
index a90f370b3dbcdf52c0d5152ada573b51dd740401..3c3315686a93cc5ef1a44303f4042e2cb63069e6 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, s
trlen(buf)
);
+ memmove(buf, buf + 1, s
izeof(buf) - 1
);
buf[strlen(buf) - 1] = '\0';
debug_print("Found label: %s\n", buf);
ac_label_list = g_slist_append(ac_label_list,