Changeset 354 for trunk/util

Show
Ignore:
Timestamp:
07/06/08 21:06:40 (6 months ago)
Author:
saurik
Message:

Switched to minimal's strndup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/ldid.cpp

    r353 r354  
    3737 
    3838#include "minimal/stdlib.h" 
     39#include "minimal/string.h" 
    3940#include "minimal/mapping.h" 
    4041 
     
    360361 
    361362        if (base != NULL) 
    362             dir = strndup(path, base++ - path + 1); 
     363            dir = strndup_(path, base++ - path + 1); 
    363364        else { 
    364365            dir = strdup("");