зеркало из https://github.com/mozilla/pjs.git
Missing include was causing strncpy to be undefined and we should be using PL_strncpy anyways. Added newline at end of file to get rid of a warning.
This commit is contained in:
Родитель
ec7ad9543d
Коммит
33bda47823
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <signal.h>
|
||||
#include "prthread.h"
|
||||
#include "plstr.h"
|
||||
|
||||
extern "C" char * strsignal(int);
|
||||
static char _progname[1024] = "huh?";
|
||||
|
@ -99,7 +100,7 @@ ah_crap_handler(int signum)
|
|||
void InstallUnixSignalHandlers(const char *ProgramName)
|
||||
{
|
||||
|
||||
strncpy(_progname,ProgramName, (sizeof(_progname)-1) );
|
||||
PL_strncpy(_progname,ProgramName, (sizeof(_progname)-1) );
|
||||
|
||||
#if defined(NTO)
|
||||
/* Neutrino need this to free shared memory in case of a crash */
|
||||
|
@ -116,4 +117,5 @@ void InstallUnixSignalHandlers(const char *ProgramName)
|
|||
signal(SIGABRT, ah_crap_handler);
|
||||
#endif // CRAWL_STACK_ON_SIGSEGV
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче