Bug 548612 – g_strstr_len() should use memmem when available
authorBastien Nocera <hadess@hadess.net>
Thu, 28 Aug 2008 12:53:59 +0000 (12:53 +0000)
committerBastien Nocera <hadess@src.gnome.org>
Thu, 28 Aug 2008 12:53:59 +0000 (12:53 +0000)
commitf84518e35b81f39c075df3563d86e494af836778
tree42fbb25ddd66f1f89d6b6a466c6890f187c49342
parent3feaad58e6b152cf1368788a92a3ac9f22b0274a
Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Bastien Nocera  <hadess@hadess.net>

Bug 548612 – g_strstr_len() should use memmem when available

* glib/tests/strfuncs.c (test_strstr):
* tests/string-test.c (main): Patch by Paolo Borelli
<pborelli@katamail.com> to move the tests to the right place,
and add more tests

* glib/gstrfuncs.c (g_strstr_len): Fix problem with memmem ignoring
nul-terminators in strings, and using the haystack_len instead

svn path=/trunk/; revision=7409
ChangeLog
glib/gstrfuncs.c
glib/tests/strfuncs.c
tests/string-test.c