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:
Matthias Clasen 2006-04-05 15:06:15 +00:00 committed by Matthias Clasen
parent 3c1418ba53
commit 1e795591bb
3 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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