git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@798 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
amber 2004-12-26 22:22:17 +00:00
parent ca67b45fbd
commit f9a63a7efb
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Date Added Date Added
12/26 12/26
* Fixed some array bounds errors (SVN 797) [MouseJstr] * Fixed some array bounds errors (SVN 798) [MouseJstr]
* @mapexit (and do_final) now persist all data to the * @mapexit (and do_final) now persist all data to the
char server before exiting to eliminate storage/inventory char server before exiting to eliminate storage/inventory
inconsistancies.. [MouseJstr] (SVN 793) inconsistancies.. [MouseJstr] (SVN 793)

View File

@ -1820,7 +1820,7 @@ int clif_cutin(struct map_session_data *sd, char *image, int type) {
fd=sd->fd; fd=sd->fd;
WFIFOW(fd,0)=0x1b3; WFIFOW(fd,0)=0x1b3;
memcpy(WFIFOP(fd,2),image,64); strncpy(WFIFOP(fd,2),image,64);
WFIFOB(fd,66)=type; WFIFOB(fd,66)=type;
WFIFOSET(fd,packet_len_table[0x1b3]); WFIFOSET(fd,packet_len_table[0x1b3]);

View File

@ -154,6 +154,7 @@ void vending_openvending(struct map_session_data *sd,int len,char *message,int f
} }
sd->vender_id = sd->bl.id; sd->vender_id = sd->bl.id;
sd->vend_num = i; sd->vend_num = i;
Assert (sd->vend_num < (sizeof (sd->vending) / sizeof(sd->vending[0])));
strcpy(sd->message,message); strcpy(sd->message,message);
if (clif_openvending(sd,sd->vender_id,sd->vending) > 0) if (clif_openvending(sd,sd->vender_id,sd->vending) > 0)
clif_showvendingboard(&sd->bl,message,0); clif_showvendingboard(&sd->bl,message,0);