[gupnp] Re: [PATCH] Workaround for broken printf() implementations.
- From: Sven Neumann <s neumann raumfeld com>
- To: gupnp o-hand com
- Subject: [gupnp] Re: [PATCH] Workaround for broken printf() implementations.
- Date: Thu, 06 Aug 2009 15:02:16 +0200
Hi,
On Thu, 2009-08-06 at 14:59 +0200, Sven Neumann wrote:
> Explicitly add 24 zeros for the 24 reserved hex-digits in DLNA.ORG_FLAGS.
> The previous implementation used the format string "%.8x%.24x". This
> causes a crash in the gnulib vasprintf() implementation shipped with GLib.
> The new code is less demanding on the printf implementation and hopefully
> also easier to read.
I should probably note that I will also file a bug report against glib.
I have just verified that it is indeed the included vasprintf()
implementation that chokes on
g_snprintf (buf, sizeof(buf), "%.24x", 0);
It would nevertheless be nice if you could also accept the workaround in
gupnp-av.
Sven
--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]