X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmUtil.cxx;h=d1b23d8e28817daaeb9896b47526cf3af7fac537;hb=0068e5861800986e33ee5eeac99863c4e01e3512;hp=20861332ea2c55e15ba96f2edf33346da9bec1aa;hpb=90034aefc764a5b6c4815c9073606d36956acab1;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 20861332..d1b23d8e 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/02/11 19:00:39 $ - Version: $Revision: 1.134 $ + Date: $Date: 2005/02/11 19:06:55 $ + Version: $Revision: 1.135 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -899,8 +899,8 @@ std::ostream &binary_write(std::ostream &os, const uint16_t *val, size_t len) uint16_t *buffer = new uint16_t[BUFFER_SIZE/2]; // how many BUFFER_SIZE long pieces in binArea ? - int nbPieces = lgr/BUFFER_SIZE; //(16 bits = 2 Bytes) - int remainingSize = lgr%BUFFER_SIZE; + int nbPieces = len/BUFFER_SIZE; //(16 bits = 2 Bytes) + int remainingSize = len%BUFFER_SIZE; for (int j=0;j