Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On the fly
[tools/medcoupling.git]
/
src
/
MEDLoader
/
MEDLoaderBase.cxx
diff --git
a/src/MEDLoader/MEDLoaderBase.cxx
b/src/MEDLoader/MEDLoaderBase.cxx
index 8af45dda8de09af891ed2f546f9236a009d21f6e..b83d8a84ec82ee07a8c531581488ed72906672e4 100644
(file)
--- a/
src/MEDLoader/MEDLoaderBase.cxx
+++ b/
src/MEDLoader/MEDLoaderBase.cxx
@@
-177,7
+177,8
@@
void MEDLoaderBase::safeStrCpy2(const char *src, int maxLgth, char *dest, int be
return ;
}
}
return ;
}
}
- int n=strlen(src);
+ int n(strlen(src));
+ std::fill(dest,dest+maxLgth,' ');
strncpy(dest,src,n);
}
strncpy(dest,src,n);
}