one more snprintf not available on hp-ux solution ?


Subject: one more snprintf not available on hp-ux solution ?
From: Gansser, Martin (MGansser@rand.de)
Date: Wed Oct 17 2001 - 02:22:06 CDT


Hello,

I wrote a mail to Kevin Vajk, who builts a prior binary version of abiword
for hp-ux:
here are the questions and answers:

> do you work sometimes on the abiword project.

I haven't in a while, unfortunately. I keep on meaning to get back into
it...

> I have problems with compilaton on hp-ux 10.20, the function
> s[vn]printf failed on 10.20.
>
> How do you compiles abiword on hp-ux 10.20

At the time, I just pestered them to not use snprintf(). The intended
solution was to write a UT_snprintf() replacement for snprintf(), so
we'd have a working snprintf() on all platforms, since snprintf() isn't
portable.

A quick hack to get it to compile is to replace all the calls like
snprintf(s, len, f, ....) with sprintf(s, f, ...), just replacing
snprintf() with sprintf() and throwing away the bounds checking.

In the meantime, I'll try to get to UT_snprinf()...

Sorry if this isn't much help. :(

-- 

- Kevin Vajk <kvajk@cup.hp.com>

Martin Gansser



This archive was generated by hypermail 2b25 : Wed Oct 17 2001 - 02:20:18 CDT