Re: [Spice-devel] [spice-gtk 2/2] mingw: Fix compilation breakage because of memmem use

2018-10-01 Thread Frediano Ziglio
> > mingw does not provide memmem. Since the qmp data we get should not have > embedded nul characters, we can use g_strstr_len instead of memmem. See https://stackoverflow.com/questions/43969649/null-character-within-json, you can remove the should. > Should that be a problem, gnulib provides

[Spice-devel] [spice-gtk 2/2] mingw: Fix compilation breakage because of memmem use

2018-10-01 Thread Christophe Fergeau
mingw does not provide memmem. Since the qmp data we get should not have embedded nul characters, we can use g_strstr_len instead of memmem. Should that be a problem, gnulib provides a lgplv2+ implementation of memmem we could fallback on.