Fix a crash when resolving URIs with both spaces and non-UTF8 chars
authorDan Winship <danw@gnome.org>
Mon, 13 Sep 2010 14:31:02 +0000 (10:31 -0400)
committerDan Winship <danw@gnome.org>
Mon, 13 Sep 2010 19:42:44 +0000 (15:42 -0400)
commit318dae530cf578b35d87dffcc1a03bced2788769
tree6e7d03377ff893f12e2df241f1c0317eca8c96eb
parent154105dc646a20979f26e0c581cbf75a38b897bd
Fix a crash when resolving URIs with both spaces and non-UTF8 chars

When using "%.*s" in a UTF-8 locale, in at least some cases, glibc
requires that the string not end in something that looks like a
partial UTF-8 character. This seems wrong according to the c99 spec to
me, but regardless, we need to work around it.

https://bugzilla.gnome.org/show_bug.cgi?id=629449
libsoup/soup-uri.c