[ogg-dev] [PATCH] skeleton.c

ogg.k.ogg.k at googlemail.com ogg.k.ogg.k at googlemail.com
Tue Feb 12 02:05:37 PST 2008

> However if we simply truncate to the correct length then the final LF
> is replaced with NUL by snprintf. So we need to allocate room for one
> extra char (the NUL) as you have done, but then not truncate the
> write: so we both allocate and print with length
> (this_message_size+1).

Ah ah, got me nicely there :)


More information about the ogg-dev mailing list