Hello

Before you release a new version of ifhp, could you please incorporate
these 2 small bug fixes ? The bugs are there since ifhp 3.4.2 at
least.  I found them while I was still running sunos 4.1.4 in november
2000. Since, I switched to solaris 8 but you left the bug (despite one
or two previous notifications).

I enclose a patch for solving the problem. First is a typo with the
macro SNPRINTF. Second is a problem with strerror() that is used
without testing it against HAVE_STRERROR.
No drama.

Best regards.

        Thierry Besancon

----------------------------------------------------------------------
*** src/errormsg.c.dist Sun May  5 22:59:10 2002
--- src/errormsg.c      Fri Jun 14 10:53:10 2002
***************
*** 61,67 ****
  # endif
                {
                        static char msgbuf[32];     /* holds "errno=%d". */
!                       (void) SNPRINTF(msgbuf,sizeof(msgbuf), "errno=%d", err);
                        cp = msgbuf;
                }
  #endif
--- 61,67 ----
  # endif
                {
                        static char msgbuf[32];     /* holds "errno=%d". */
!                       (void) SNPRINTF(msgbuf,sizeof(msgbuf)) "errno=%d", err);
                        cp = msgbuf;
                }
  #endif
*** src/textps.c.dist   Sun May  5 22:59:10 2002
--- src/textps.c        Fri Jun 14 10:54:20 2002
***************
*** 363,369 ****
--- 363,373 ----
      outfp = popen( cmd, "w" );
        if( outfp == NULL ){
                c = errno;
+ #if defined(HAVE_STRERROR)
                FPRINTF(STDERR, "popen '%s' failed - %s", cmd, strerror(errno) );
+ #else
+               FPRINTF(STDERR, "popen '%s' failed - errno=%d", cmd, errno );
+ #endif /* HAVE_STRERROR */
                exit( 1 );
        }
        if( fileno(outfp) != 1 ){

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to