replace strdup by copy

This commit is contained in:
Holger Vogt 2017-11-05 14:20:00 +01:00
parent fd97074ba1
commit bdb69d7a3e
1 changed files with 4 additions and 1 deletions

View File

@ -155,6 +155,10 @@ extern void SetAnalyse(char *Analyse, int Percent);
#include <process.h> /* getpid() */
#endif
/* Use internal copy() function instead of strdup, to
have memory allocation only by functions in alloc.c */
#define strdup copy
#if defined (_MSC_VER)
#include <direct.h>
#include <process.h>
@ -172,7 +176,6 @@ extern double x_acosh(double);
extern double x_atanh(double);
#define hypot _hypot
#endif
#define strdup _strdup
#define unlink _unlink
#define fileno _fileno
#define getcwd _getcwd