diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-04-01 06:16:28 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-04-01 06:16:28 +0000 |
commit | 1086946ca3a5c6cf58c2f1e67f0078cd3abbb698 (patch) | |
tree | a479094bf3e452d08c631d81b1b44d6b8e097b9d /src/map/npc.c | |
parent | 12e8d15728ce26f82a985c0a7218a1e9482250d2 (diff) | |
download | hercules-1086946ca3a5c6cf58c2f1e67f0078cd3abbb698.tar.gz hercules-1086946ca3a5c6cf58c2f1e67f0078cd3abbb698.tar.bz2 hercules-1086946ca3a5c6cf58c2f1e67f0078cd3abbb698.tar.xz hercules-1086946ca3a5c6cf58c2f1e67f0078cd3abbb698.zip |
Fixed some memory corruptions [MouseJstr]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1370 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 2396991d5..3369d6b77 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -29,7 +29,10 @@ #include "memwatch.h" #endif - +#ifdef _WIN32 +#undef isspace +#define isspace(x) (x == ' ' || x == '\t') +#endif struct npc_src_list { struct npc_src_list * next; @@ -1708,11 +1711,11 @@ static int npc_parse_script(char *w1,char *w2,char *w3,char *w4,char *first_line char srcname[128]; struct npc_data *nd2; if( sscanf(w2,"duplicate(%[^)])",srcname)!=1 ){ - printf("bad duplicate name! : %s",w2); + printf("bad duplicate name (in %s)! : %s",current_file, w2); return 0; } if( (nd2=npc_name2id(srcname))==NULL ){ - printf("bad duplicate name! (not exist) : %s\n",srcname); + printf("bad duplicate name (in %s)! (not exist) : %s\n", current_file, srcname); return 0; } script=(unsigned char *)nd2->u.scr.script; |