summaryrefslogtreecommitdiffstats
path: root/src/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-10-25 12:29:12 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-10-25 12:29:12 (GMT)
commit42ded335a90632a5f7a18a26f2727d149afb0511 (patch)
tree3949692d62175fa742238e55026f97cfabdc2f48 /src/uscxml
parente8998364a65c8242663606fd43796b656f490fe6 (diff)
downloaduscxml-42ded335a90632a5f7a18a26f2727d149afb0511.zip
uscxml-42ded335a90632a5f7a18a26f2727d149afb0511.tar.gz
uscxml-42ded335a90632a5f7a18a26f2727d149afb0511.tar.bz2
Trying to fix the build on all platforms
Diffstat (limited to 'src/uscxml')
-rw-r--r--src/uscxml/plugins/datamodel/promela/PromelaParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/plugins/datamodel/promela/PromelaParser.cpp b/src/uscxml/plugins/datamodel/promela/PromelaParser.cpp
index 15eacee..32fbc13 100644
--- a/src/uscxml/plugins/datamodel/promela/PromelaParser.cpp
+++ b/src/uscxml/plugins/datamodel/promela/PromelaParser.cpp
@@ -22,6 +22,7 @@
#include "uscxml/messages/Event.h"
#include <iostream>
+#include <string.h> // memcpy
struct yy_buffer_state;
typedef yy_buffer_state *YY_BUFFER_STATE;
@@ -84,7 +85,7 @@ void PromelaParser::init(const std::string& expr) {
parseInCompound = 0;
input_length = expr.length() + 2; // plus some zero terminators
input = (char*) calloc(1, input_length);
- std::memcpy(input, expr.c_str(), expr.length());
+ memcpy(input, expr.c_str(), expr.length());
promela_lex_init(&scanner);
// promela_assign_set_extra(ast, &scanner);