Thread: libpqtypes - libpqtypes: va_arg was passed as an argument to the

libpqtypes - libpqtypes: va_arg was passed as an argument to the

From
achernow@pgfoundry.org (User Achernow)
Date:
Log Message:
-----------
va_arg was passed as an argument to the internal pqt_buf_putxxx macros for int2 and int4 put routines.  This corrupted
thevalue being put and caused the regression-test to fail.  Problem has only been seen on UnixWare 7.1.4.  Solution was
tostore the return of va_arg in a local variable and pass that to pqt_buf_putxxx macros. 

Modified Files:
--------------
    libpqtypes/src:
        numerics.c (r1.8 -> r1.9)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/libpqtypes/libpqtypes/src/numerics.c.diff?r1=1.8&r2=1.9)
        regression-test.c (r1.12 -> r1.13)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/libpqtypes/libpqtypes/src/regression-test.c.diff?r1=1.12&r2=1.13)