From 8b050adff043c24bca4df7726c5b2bce0edf36ae Mon Sep 17 00:00:00 2001 From: ajarn Date: Thu, 23 Dec 2004 04:57:29 +0000 Subject: update git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@743 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/grfio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/grfio.c b/src/common/grfio.c index b005398cc..d27636d33 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); } -- cgit v1.2.3-70-g09d2