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/wrc.c

    r21916 r21929  
    645645        else
    646646        {
    647             if(!(temp_name = tmpnam(NULL)))
    648                 error("Could nor generate a temp-name\n");
    649             temp_name = xstrdup(temp_name);
     647            temp_name = xtempnam(NULL, NULL);
    650648            if(!(ppout = fopen(temp_name, "wb")))
    651649                error("Could not create a temp-file\n");
Note: See TracChangeset for help on using the changeset viewer.