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

From: "Pedro J(dot) Lobo" <pjlobo(at)euitt(dot)upm(dot)es>
To: PostgreSQL hackers mailing list <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL ports mailing list <pgsql-ports(at)postgresql(dot)org>
Subject: Bug fix for src/backend/ports/snprintf.c sent to the patches list
Date: 1998-12-17 16:09:57
Message-ID: Pine.OSF.4.05.9812171704080.19842-100000@haddock.euitt.upm.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)euitt(dot)upm(dot)es

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Broytmann 1998-12-17 16:45:45 Re: [HACKERS] Date/time on glibc2 linux
Previous Message Thomas G. Lockhart 1998-12-17 15:43:40 Re: [PATCHES] Cobalt/Linux porting patch