Commit e3aa5223 e3aa52237eb9c3d03ab699fafd740f21fbe6dfc6 by Sergey Poznyakoff

(mu_header_get_value): Bugfix

1 parent b8c2f552
......@@ -546,7 +546,7 @@ mu_header_get_value (mu_header_t header, const char *name, char *buffer,
if (fv_len > buflen)
fv_len = buflen;
memcpy (buffer, header->hdr[i].fv, fv_len);
buffer[buflen] = 0;
buffer[fv_len] = 0;
}
if (pn)
......