Commit 72a838b1 72a838b15876f49d3b78a57e4aa42338a1f8bedb by Sergey Poznyakoff

(qp_decode): Bugfix: extend chr to accomodate three characters and

terminate it with zero.
1 parent 06931f48
......@@ -395,9 +395,10 @@ qp_decode (const char *iptr, size_t isize, char *optr, size_t osize,
else
{
/* you get =XX where XX are hex characters. */
char chr[2];
char chr[3];
int new_c;
chr[3] = 0;
chr[0] = *iptr++;
/* Ignore LF. */
if (chr[0] != '\n')
......