summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 22:55:14 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 22:55:14 +0000
commit53fd71218c7c5da19c1bd3e77f7aba9add170b9f (patch)
treec7d369bafb9d62d4e83a89ee069aa4005814cdfc /src/map/pc.c
parentdc1c7d89daaea595ce89f5197317c61ab292c7de (diff)
downloadhercules-53fd71218c7c5da19c1bd3e77f7aba9add170b9f.tar.gz
hercules-53fd71218c7c5da19c1bd3e77f7aba9add170b9f.tar.bz2
hercules-53fd71218c7c5da19c1bd3e77f7aba9add170b9f.tar.xz
hercules-53fd71218c7c5da19c1bd3e77f7aba9add170b9f.zip
updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@799 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 881d302c5..ccf163f4e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3873,7 +3873,7 @@ int pc_setpos(struct map_session_data *sd,char *mapname_org,int x,int y,int clrt
sd->disguise=0;
}
- memcpy(mapname,mapname_org,24);
+ strncpy(mapname,mapname_org,sizeof(mapname));
mapname[16]=0;
if(strstr(mapname,".gat")==NULL && strstr(mapname,".afm")==NULL && strlen(mapname)<16){
strcat(mapname,".gat");
@@ -7686,6 +7686,8 @@ static int pc_autosave_sub(struct map_session_data *sd,va_list ap)
{
nullpo_retr(0, sd);
+ Assert((sd->status.pet_id == 0 || sd->pd == 0) || sd->pd->msd == sd);
+
if(save_flag==0 && sd->fd>last_save_fd){
struct guild_castle *gc=NULL;
int i;