1 --- ./c30_resource/src/generator/resource.c.~1~ 2008-02-20 18:19:36.000000000 +0100
2 +++ ./c30_resource/src/generator/resource.c 2009-01-31 07:30:30.000000000 +0100
7 - if (stat(name,&fileinfo) == -1) {
8 - /* name cannot be statted */
9 - /* this could be because of the reoganization of the install directory
10 - * some of the binaries are in the same directory as the resource file,
11 - * some are one directory below it... try moving one up and looking again
14 - char *ultimate = (char *)name,
15 - *penultimate = (char *)name;
18 - for (c = (char *)name; *c; c++) {
19 - if ((*c == '/') || (*c == '\\')) {
20 - penultimate = ultimate;
22 - while (c[1] == *c) c++; /* ignore duplicate slashes */
25 - temp = (char *)xcalloc(strlen(ultimate)+1,1);
26 - strcpy(temp, ultimate);
27 - strcpy(penultimate,ultimate);
28 - stat(name,&fileinfo);
30 + stat(name,&fileinfo);
31 /* under WINDOZE, the "b" is required because text files are subject to
32 translation and ftell and fseek might not agree */
33 input_file = fopen(name,"rb");