Mercurial > hg > orthanc
diff Plugins/Samples/Basic/Plugin.c @ 1200:1e1390665639 db-changes
fix sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 Oct 2014 14:42:11 +0200 |
parents | a843ee8bb903 |
children | f1c01451a8ee |
line wrap: on
line diff
--- a/Plugins/Samples/Basic/Plugin.c Thu Oct 23 14:29:45 2014 +0200 +++ b/Plugins/Samples/Basic/Plugin.c Thu Oct 23 14:42:11 2014 +0200 @@ -262,11 +262,11 @@ if (changeType == OrthancPluginChangeType_NewInstance) { - sprintf(info, "/instances/%s/metadata/ReceptionDate", resourceId); + sprintf(info, "/instances/%s/metadata/AnonymizedFrom", resourceId); if (OrthancPluginRestApiGet(context, &tmp, info) == 0) { - sprintf(info, " Instance %s comes from the anonymization of instance %s", - resourceId, (const char*) tmp.data); + sprintf(info, " Instance %s comes from the anonymization of instance", resourceId); + strncat(info, (const char*) tmp.data, tmp.size); OrthancPluginLogWarning(context, info); OrthancPluginFreeMemoryBuffer(context, &tmp); }