Re: Obscure Bug in %: last character dropped from generated string

Guido.van.Rossum@cwi.nl
Sun, 10 Jul 1994 09:23:28 +0200

This was reported by Rick Woudenberg less than two weeks ago -- I
posted a bug fix then. Here it is again:

diff -c -r2.19.2.6 stringobject.c
*** 2.19.2.6 1994/05/09 14:56:55
--- stringobject.c 1994/07/01 10:41:31
***************
*** 674,679 ****
--- 674,680 ----
if (resizestring(&result, reslen) < 0)
return NULL;
res = getstringvalue(result) + reslen - rescnt;
+ --rescnt;
}
*res++ = *fmt++;
}

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>