64bit: Fix crash in dtexec
No ANSI prototype for malloc() caused the returned pointer to be truncated to 32 bits.
This commit is contained in:
committed by
Jon Trulson
parent
d31fc60fbf
commit
98b17d3551
@@ -40,6 +40,7 @@
|
||||
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <nl_types.h>
|
||||
#include "DtSvcLock.h"
|
||||
|
||||
@@ -145,7 +145,7 @@ static char * get_file_name (
|
||||
va_list args;
|
||||
|
||||
file = malloc(MAXPATHLEN+1);
|
||||
if (! file) return;
|
||||
if (! file) return NULL;
|
||||
|
||||
Va_start (args, format);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user