Bug fix for src/backend/ports/snprintf.c sent to the patches list - Mailing list pgsql-ports

From Pedro J. Lobo
Subject Bug fix for src/backend/ports/snprintf.c sent to the patches list
Date
Msg-id b8c4d331a2f6c6be9c112b5411405505
Whole thread Raw
List pgsql-ports
Hi, all.

I've just sent a patch to the pgsql-patches list that (among other fixes
specific for Digital Unix) contains a patch for
src/backent/ports/snprintf.c. That file contained two bugs: it incorrectly
used HAVE_LONG_INT_64 to check if it could use the "long long int" type
(changed to HAVE_LONG_LONG_INT_64), and it misused the variable argument
mechanism defined in stdarg.h (vsnprintf was incorrectly defined, for
example).

The patch fixes the type int8 under Digital Unix, and it should fix it
also for systems that don't have native snprintf/vsnprintf.

Please take a look at it, and let me know if you see something wrong.

- --
- -------------------------------------------------------------------
Pedro José Lobo Perea                   Tel:    +34 91 336 78 19
Centro de Cálculo                       Fax:    +34 91 331 92 29
EUIT Telecomunicación - UPM             e-mail: pjlobo@euitt.upm.es

pgsql-ports by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: 64-bit int (was backend cache...)
Next
From: David Robert Westhead
Date:
Subject: PostgreSQL-6.4 on Alpha