diff --git a/src/utilities/gsec/call_service.cpp b/src/utilities/gsec/call_service.cpp index 679e77f456..839fb60f7c 100644 --- a/src/utilities/gsec/call_service.cpp +++ b/src/utilities/gsec/call_service.cpp @@ -559,7 +559,7 @@ static int typeBuffer(ISC_STATUS* status, char* buf, int offset, // Old data left - use them if (offset) { - memmove(&buf[offset], p, loop); + memmove(&buf[offset], p, loop + 1); p = buf; loop += offset; offset = 0;