mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix missing include for malloc prototype after header cleanup in change 489dca71cd
This commit is contained in:
parent
e90e80a2f6
commit
b035528c1c
@ -22,6 +22,8 @@
|
||||
#include "support/docstring.h"
|
||||
#include "support/debug.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace lyx;
|
||||
|
||||
@ -33,7 +35,7 @@ extern "C" LyXFunctionResult applescript_execute_command(const char *cmd, const
|
||||
theApp()->dispatch(fr, dr);
|
||||
|
||||
string const rval = to_utf8(dr.message());
|
||||
char *cstr =(char*) malloc((rval.size()+1)*sizeof(rval[0]));
|
||||
char *cstr = (char*) malloc((rval.size()+1)*sizeof(rval[0]));
|
||||
strcpy (cstr, rval.c_str());
|
||||
|
||||
// Returns the result
|
||||
|
Loading…
Reference in New Issue
Block a user