mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Make long long printing work if snprintf is not available. (#332841,
2006-04-05 Matthias Clasen <mclasen@redhat.com> * glib/gnulib/vasnprintf.c (vasnprintf): Make long long printing work if snprintf is not available. (#332841, Michael McDonald)
This commit is contained in:
parent
3c1418ba53
commit
1e795591bb
@ -1,3 +1,9 @@
|
||||
2006-04-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gnulib/vasnprintf.c (vasnprintf): Make
|
||||
long long printing work if snprintf is not
|
||||
available. (#332841, Michael McDonald)
|
||||
|
||||
2006-04-05 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* tests/option-test.c: Check the return value of g_get_prgname for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-04-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gnulib/vasnprintf.c (vasnprintf): Make
|
||||
long long printing work if snprintf is not
|
||||
available. (#332841, Michael McDonald)
|
||||
|
||||
2006-04-05 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* tests/option-test.c: Check the return value of g_get_prgname for
|
||||
|
@ -853,11 +853,19 @@ vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
|
||||
}
|
||||
}
|
||||
|
||||
#if HAVE_SNPRINTF
|
||||
count = print_long_long (result + length, maxlen,
|
||||
width, precision,
|
||||
dp->flags,
|
||||
dp->conversion,
|
||||
arg);
|
||||
#else
|
||||
count = print_long_long (tmp, tmp_length,
|
||||
width, precision,
|
||||
dp->flags,
|
||||
dp->conversion,
|
||||
arg);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user