Commit f8aca046 authored by Bruce Momjian's avatar Bruce Momjian

Fix for %I64d snprintf.

parent 022ece2c
...@@ -65,7 +65,7 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment