diff options
author | George Williams <gww@silcom.com> | 2005-10-10 21:28:52 +0000 |
---|---|---|
committer | George Williams <gww@silcom.com> | 2005-10-10 21:28:52 +0000 |
commit | 0b3dda561d2c1cd7c0538cb34df3d4b2d99d0820 (patch) | |
tree | 8af81093acd625f54d8070cdf5daf3a2a7729bd0 | |
parent | 71966b18cc2b3c24b97cf932dbef4a569dd83051 (diff) |
Someone found problems in the file res2data.c and fixed them. Thanks!
-rw-r--r-- | res2data.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -33,18 +33,19 @@ #include <time.h> #ifdef __Mac -#include "MacFiles.h" +#include <Files.h> static int ToResourceFork(char *filename) { /* If we're on a mac, we can try to see if we've got a real resource fork */ #ifndef OldMacintosh char *buf, *pt, *respath; FILE *res, *temp; + int cnt; - respath = galloc(strlen(filename)+strlen("/rsrc")+1); + respath = malloc(strlen(filename)+strlen("/rsrc")+1); strcpy(respath,filename); strcat(respath,"/rsrc"); - resfork = fopen(respath,"r"); + res = fopen(respath,"r"); free(respath); buf = malloc(strlen(filename)+strlen(".res")+20); |