On Jan 14, 2014, at 2:01 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
> Casting to
> g_snprintf(string_buffer_temp, (gulong)string_buffer_size,
> Seems to do the trick on Win7
Oh, right, sorry, it'd have been been too easy for the GLib people to model g_snprintf() after snprintf():
$ man snprintf
...
int
snprintf(char * restrict str, size_t size, const char * restrict format,
...);
and use gsize (assuming that there was a good reason to have gsize, rather than size_t, in the first place), so they used gulong, just to be different.