diff --git a/Changelog.txt b/Changelog.txt index e7aca8df0a..e4164a59c1 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 12/22 + * Fixed a bug in grfio_read causing memory corruptions [MouseJstr] * Rearranged how guild messages, gm messages, and party messages are moved back and forth between the inter server and the map server.. eliminating unneeded round trips to eliminate diff --git a/src/common/grfio.c b/src/common/grfio.c index b005398cc8..d27636d337 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -492,8 +492,10 @@ void* grfio_reads(char *fname, int *size) strncpy(lfname,fname,255); // i hope this is the correct way =p [celest] if ((rname=grfio_resnametable(fname,lfname))!=NULL) { + char tbuf[255]; //sprintf(rname,"%s",grfio_resnametable(fname,lfname)); - sprintf(lfname,"%s%s",data_dir,rname); + sprintf(tbuf,"%s%s",data_dir,rname); + strcpy(lfname, tbuf); //printf("%s\n",lfname); }