From f21454e1dbabee05c4698f03f2aea6d46554a3a1 Mon Sep 17 00:00:00 2001 From: momacabu Date: Fri, 23 Nov 2012 04:34:12 +0000 Subject: [PATCH] - Fixed dumb warning (follow up to r16950) -_- git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16951 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/tool/mapcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c index 28688438a6..4eb4355444 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);