diff Platforms/Wasm/Defaults.cpp @ 309:14ef1227120f am-callable-and-promise

web services: better handling of failures
author am@osimis.io
date Fri, 28 Sep 2018 15:02:43 +0200
parents be2660b6e40a
children 8716176ff7f0
line wrap: on
line diff
--- a/Platforms/Wasm/Defaults.cpp	Tue Sep 25 15:14:53 2018 +0200
+++ b/Platforms/Wasm/Defaults.cpp	Fri Sep 28 15:02:43 2018 +0200
@@ -262,7 +262,7 @@
     static std::string output; // we don't want the string to be deallocated when we return to JS code so we always use the same string (this is fine since JS is single-thread)
 
     printf("SendMessageToStoneApplication\n");
-    printf(message);
+    printf("%s", message);
 
     if (applicationWasmAdapter.get() != NULL) {
       printf("sending message to C++\n");