projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3839df
)
fix dlen
master
author
Art Cancro
<ajc@citadel.org>
Thu, 16 May 2024 04:05:24 +0000
(
04:05
+0000)
committer
Art Cancro
<ajc@citadel.org>
Thu, 16 May 2024 04:05:24 +0000
(
04:05
+0000)
citadel/utils/ctdlload.c
patch
|
blob
|
history
diff --git
a/citadel/utils/ctdlload.c
b/citadel/utils/ctdlload.c
index cc25ef28a8a896882e6c027b8f932d133cc8cb9b..e69aa0873745d1ea3607a08929f74147695a4849 100644
(file)
--- a/
citadel/utils/ctdlload.c
+++ b/
citadel/utils/ctdlload.c
@@
-118,6
+118,7
@@
int import_user(char *line, struct cdbkeyval *kv) {
char userkey[USERNAME_SIZE];
char *token;
struct ctdluser *u;
+ int dlen = 0;
u = malloc(sizeof(struct ctdluser));
if (!u) {
@@
-163,7
+164,6
@@
int import_user(char *line, struct cdbkeyval *kv) {
u->msgnum_pic = atol(token);
break;
case 12:
- int dlen;
dlen = CtdlDecodeBase64(token, token, strlen(token)); // Decode in place
if (dlen >= sizeof(u->emailaddrs)) {
dlen = sizeof(u->emailaddrs) - 1;