[NTG-pdftex] makecfilename (was: 1.30.0-rc5)

Martin Schröder martin at oneiros.de
Tue Jul 26 22:32:04 CEST 2005


On 2005-07-26 23:02:33 +0900, Akira Kakuto wrote:
> I think access violation occurs if one uses an primitive
> which calls makecfilename() in utils.c.
> If I use the following, it became ok.
> 
> char *makecfilename(strnumber s) {
>     char *name = makecstring(s);
> #ifdef WIN32
>     /* unquote file name */
>     if (*name == '"') {
>         char *p = name;
>         char *q = name;
>         while (p && *p) {
>             *q = (*p == '"' ? *(++p) : *p);
>             p++, q++;
>         }
>         *q = '\0';
>     }
>     fprintf(stderr, " %s\n", name);
> #endif
>     return name;
> }

Thanks, that makes much more sense. The manual always compiled
o.k, although it uses e.g. the md5 functions. :-}

Best
    Martin
-- 
                    http://www.tm.oneiros.de


More information about the ntg-pdftex mailing list