From: jpr Date: Wed, 26 Oct 2005 15:48:33 +0000 (+0000) Subject: To avoid warnings X-Git-Tag: OpenJPEG.Version1.2~140 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d7b89e5cdd856374b0f752bb4417b54d84533ed9;p=gdcm.git To avoid warnings --- diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index 4f8937e9..56578ccc 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 14:27:37 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/10/26 15:48:33 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -379,7 +379,8 @@ void DataEntry::SetString(std::string const &value) size_t l = value.size(); SetLength(l + l%2); NewBinArea(); - memcpy(BinArea, &(value[0]), l); + //memcpy(BinArea, &(value[0]), l); + memcpy(BinArea, value.c_str(), l); if (l%2) BinArea[l] = '\0'; }