diff Plugins/Samples/Basic/Plugin.c @ 3543:cac5a3ddd441

fix warning in plugin sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Oct 2019 16:46:18 +0200
parents c9a71eb4edcf
children 94f4a18a79cc
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");