summaryrefslogtreecommitdiff
path: root/src/tool
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 04:34:12 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 04:34:12 +0000
commit15762b30698842255bc545dee68705fad3447a4b (patch)
treeaaad807cfaf0bab074db7f759bef2dd5ac20b2eb /src/tool
parenta700ac463ea3a34a78a5de15a488b28f0932c91a (diff)
downloadhercules-15762b30698842255bc545dee68705fad3447a4b.tar.gz
hercules-15762b30698842255bc545dee68705fad3447a4b.tar.bz2
hercules-15762b30698842255bc545dee68705fad3447a4b.tar.xz
hercules-15762b30698842255bc545dee68705fad3447a4b.zip
- Fixed dumb warning (follow up to r16950) -_-
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16951 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/mapcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c
index 28688438a..4eb435544 100644
--- a/src/tool/mapcache.c
+++ b/src/tool/mapcache.c
@@ -176,7 +176,7 @@ void cache_map(char *name, struct map_data *m)
encode_zip(write_buf, &len, m->cells, m->xs*m->ys);
// Fill the map header
- if (name > MAP_NAME_LENGTH) // It does not hurt to warn that there are maps with name longer than allowed.
+ if (sizeof(name) > MAP_NAME_LENGTH) // It does not hurt to warn that there are maps with name longer than allowed.
ShowWarning ("Map name '%s' size '%d' is too long. Truncating to '%d'.\n", name, sizeof(name), MAP_NAME_LENGTH);
strncpy(info.name, name, MAP_NAME_LENGTH);
info.xs = MakeShortLE(m->xs);