Commit 80ee86d2 authored by Olivier Bertrand's avatar Olivier Bertrand

- Restrict memcpy length in CHRBLK::SetValue

modified:
  storage/connect/valblk.cpp
parent 81e5c5db
......@@ -592,7 +592,7 @@ void CHRBLK::SetValue(char *sp, uint len, int n)
#endif
if (sp)
memcpy(p, sp, Long);
memcpy(p, sp, min((unsigned)Long, len));
if (Blanks) {
// Suppress eventual ending zero and right fill with blanks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment