mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Fix for %I64d snprintf.
This commit is contained in:
@ -65,7 +65,7 @@
|
|||||||
* causing nasty effects.
|
* causing nasty effects.
|
||||||
**************************************************************/
|
**************************************************************/
|
||||||
|
|
||||||
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.14 2005/03/02 15:07:09 momjian Exp $";*/
|
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.15 2005/03/02 15:32:39 momjian Exp $";*/
|
||||||
|
|
||||||
int snprintf(char *str, size_t count, const char *fmt,...);
|
int snprintf(char *str, size_t count, const char *fmt,...);
|
||||||
int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
|
int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
|
||||||
@ -269,7 +269,7 @@ dopr(char *buffer, const char *format, va_list args, char *end)
|
|||||||
longflag = 1;
|
longflag = 1;
|
||||||
goto nextch;
|
goto nextch;
|
||||||
case 'I':
|
case 'I':
|
||||||
if (*(format+1) == '6' && *(format+2) == '4')
|
if (*format == '6' && *(format+1) == '4')
|
||||||
{
|
{
|
||||||
format += 2;
|
format += 2;
|
||||||
longlongflag = 1;
|
longlongflag = 1;
|
||||||
|
Reference in New Issue
Block a user