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

From Pedro J. Lobo
Subject Bug fix for src/backend/ports/snprintf.c sent to the patches list
Date
Msg-id Pine.OSF.4.05.9812171704080.19842-100000@haddock.euitt.upm.es
Whole thread Raw
List pgsql-hackers
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-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [PATCHES] Cobalt/Linux porting patch
Next
From: Oleg Broytmann
Date:
Subject: Re: [HACKERS] Date/time on glibc2 linux