|
65 | 65 | * causing nasty effects.
|
66 | 66 | **************************************************************/
|
67 | 67 |
|
68 |
| -/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.18 2005/03/11 19:13:43 momjian Exp $";*/ |
| 68 | +/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.19 2005/03/12 04:00:56 momjian Exp $";*/ |
69 | 69 |
|
70 | 70 | intpg_snprintf(char*str,size_tcount,constchar*fmt,...);
|
71 | 71 | intpg_vsnprintf(char*str,size_tcount,constchar*fmt,va_listargs);
|
@@ -252,6 +252,7 @@ dopr(char *buffer, const char *format, va_list args, char *end)
|
252 | 252 | case'8':
|
253 | 253 | case'9':
|
254 | 254 | if (pointflag)
|
| 255 | +/* could also be precision */ |
255 | 256 | maxwidth=maxwidth*10+ch-'0';
|
256 | 257 | else
|
257 | 258 | {
|
@@ -455,6 +456,7 @@ dopr(char *buffer, const char *format, va_list args, char *end)
|
455 | 456 | fmtpar[fmtpos].ljust=ljust;
|
456 | 457 | fmtpar[fmtpos].len=len;
|
457 | 458 | fmtpar[fmtpos].maxwidth=maxwidth;
|
| 459 | +fmtpar[fmtpos].precision=position; |
458 | 460 | fmtpar[fmtpos].pointflag=pointflag;
|
459 | 461 | fmtpar[fmtpos].func=FMTFLOAT;
|
460 | 462 | fmtpar[fmtpos].realpos=realpos?realpos:fmtpos;
|
|