diff --git a/src/jrd/utl.cpp b/src/jrd/utl.cpp index c33239b6e9..b60d8189fa 100644 --- a/src/jrd/utl.cpp +++ b/src/jrd/utl.cpp @@ -518,7 +518,7 @@ int API_ROUTINE isc_modify_dpb(SCHAR** dpb, return FB_FAILURE; /* NOMEM: not really handled */ } - memcpy(new_dpb, dpb, *dpb_size); + memcpy(new_dpb, *dpb, *dpb_size); } else new_dpb = reinterpret_cast(*dpb);