changeset 3543:cac5a3ddd441

fix warning in plugin sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Oct 2019 16:46:18 +0200
parents 25126912aa2c
children bf6a61b918ef
files Plugins/Samples/Basic/Plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/Basic/Plugin.c	Wed Oct 16 14:33:06 2019 +0200
+++ b/Plugins/Samples/Basic/Plugin.c	Wed Oct 16 16:46:18 2019 +0200
@@ -47,7 +47,7 @@
     return OrthancPluginErrorCode_ParameterOutOfRange;
   }
   
-  sprintf(buffer, "Callback on URL [%s] with body [%s]\n", url, request->body);
+  sprintf(buffer, "Callback on URL [%s] with body [%s]\n", url, (const char*) request->body);
   OrthancPluginLogWarning(context, buffer);
 
   OrthancPluginSetCookie(context, output, "hello", "world");