This commit is contained in:
Antony Dovgal 2006-12-20 23:30:30 +00:00
parent d040ec9b8e
commit a0e2ccf490

View File

@ -1235,11 +1235,11 @@ quit_loop:
}
len = cend - comp;
ret = emalloc(len + 1);
memcpy(ret, comp, len);
ret[len] = '\0';
if (p_ret) {
ret = emalloc(len + 1);
memcpy(ret, comp, len);
ret[len] = '\0';
*p_ret = ret;
}
if (p_len) {