X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=a99f5068516a8a37be907ad6f20e1460cd15fb1f;hb=4fbe563dc18455266f880586fa2aca2cfb1012bc;hp=4aa3619ff8b81e6b09e1f5ba95fcdab3efaed368;hpb=5a7655772c47a694475c3e6296fbc0b63faca02c;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 4aa3619f..a99f5068 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/10/27 18:14:01 $ - Version: $Revision: 1.171 $ + Date: $Date: 2005/11/07 09:51:35 $ + Version: $Revision: 1.175 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -110,7 +110,7 @@ std::string Util::GDCM_MAC_ADRESS = GetMACAddress(); /** * \brief Provide a better 'c++' approach for sprintf * For example c code is: - * char result[200]; // hope 200 is enough + * char result[2048]; // hope 2048 is enough * sprintf(result, "%04x|%04x", group , elem); * * c++ code is @@ -126,7 +126,7 @@ std::string Util::GDCM_MAC_ADRESS = GetMACAddress(); */ std::string Util::Format(const char *format, ...) { - char buffer[2048]; + char buffer[2048]; // hope 2048 is enough va_list args; va_start(args, format); vsprintf(buffer, format, args); //might be a security flaw @@ -195,7 +195,6 @@ bool Util::IsCleanString(std::string const &s) //std::cout<< std::endl << s << std::endl; for(unsigned int i=0; i(val), len); }