summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/mapindex.c2
-rw-r--r--src/map/atcommand.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index 4649e299d..b693fe12d 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -148,7 +148,7 @@ void mapindex_init(void) {
exit(EXIT_FAILURE); //Server can't really run without this file.
}
memset (&indexes, 0, sizeof (indexes));
- mapindex_db = strdb_alloc(DB_RELEASE_KEY, MAP_NAME_LENGTH);
+ mapindex_db = strdb_alloc(DB_OPT_RELEASE_KEY, MAP_NAME_LENGTH);
while(fgets(line, sizeof(line), fp)) {
if(line[0] == '/' && line[1] == '/')
continue;
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 1f234911e..d831ca200 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7422,7 +7422,7 @@ ACMD(sizeguild)
struct guild *g;
nullpo_retr(-1, sd);
- memset(guild, '\0', sizeof(guild));
+ memset(guild_name, '\0', sizeof(guild_name));
if( !message || !*message || sscanf(message, "%d %23[^\n]", &size, guild_name) < 2 ) {
clif->message(fd, msg_txt(1304)); // Please enter guild name/ID (usage: @sizeguild <size> <guild name/ID>).