// Copyright (c) 1987-2024 by the citadel.org team
//
// This program is open source software. Use, duplication, or disclosure
-// are subject to the terms of the GNU General Public License, version 3.
+// is subject to the terms of the GNU General Public License, version 3.
#include "sysdep.h"
#include <stdlib.h>
Put(ctdlconfig, key, key_len, strdup(value), NULL);
// Also write it to the config database
-
int dbv_size = key_len + value_len + 2;
char *dbv = malloc(dbv_size);
strcpy(dbv, key);
// Then look in the database.
cdb = cdb_fetch(CDB_CONFIG, key, key_len);
- if (cdb.ptr == NULL) { // nope, not there either.
+ if (cdb.ptr == NULL) { // nope, not there either.
return(NULL);
}
else {
msg = CtdlFetchMessage(msgnum, 1);
if (msg != NULL) {
- conf = strdup(msg->cm_fields[eMesageText]);
+ conf = strdup(msg->cm_fields[eMessageText]);
CM_Free(msg);
}
else {