The package in subject fails with gcc 4.3.3-r1 and modern glibc because of _FORTIFY_SOURCE=2 set by default.
Created attachment 232277 [details]
Created attachment 232511 [details, diff]
Patch to fix length parameter passed to snprintf
I cannot reproduce this problem with glibc-2.10 and gcc 4.3, but I see a problem which is likely the reason for the error message. The call to snprintf passes buffer A, but the size of buffer B, where buffer B is much bigger than buffer A. Thus, the code gives snprintf permission to overrun buffer A, up to the length of buffer B. The fix is to change the argument to sizeof so that it computes the size of the buffer actually passed to snprintf. The attached patch does that.
+ 06 Jun 2010; Samuli Suominen <email@example.com>
+ Fix building with _FORTIFY_SOURCE=2 wrt #320785 by Kevin Pyle.
*** Bug 323071 has been marked as a duplicate of this bug. ***