summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/grfio.c4
1 files changed, 3 insertions, 1 deletions
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);
}