Ignore:
Timestamp:
Dec 29, 2011, 5:11:20 PM (14 years ago)
Author:
dmik
Message:

Replace tmpnam() with tempnam().

The former in EMX returns paths relative to the current
directory while it should be relative to %TMP%.

r21928 also does that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/wrc/utils.c

    r21551 r21929  
    237237    #endif
    238238    return strcpy(s, str);
     239}
     240
     241char *xtempnam(const char *dir, const char *prefix)
     242{
     243    char *res = tempnam(dir, prefix);
     244    if (!res)
     245    {
     246        fprintf (stderr, "Virtual memory exhausted.\n");
     247        exit (1);
     248    }
     249    return res;
    239250}
    240251
Note: See TracChangeset for help on using the changeset viewer.