rtl_egc(): augment *bytes VR by ltrmark size #1174

pull/1190/head
nick black 4 years ago
parent 10c8dec7c0
commit b3b700a8c0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -954,6 +954,7 @@ egc_rtl(const char* egc, int* bytes){
char* s = (char*)malloc(*bytes + sizeof(LTRMARK)); // cast for C++ callers
memcpy(s, egc, *bytes);
memcpy(s + *bytes, LTRMARK, sizeof(LTRMARK));
*bytes += strlen(LTRMARK);
return s;
}

Loading…
Cancel
Save