[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#34956: ps formatting problem (fwd)



G'day glibc-ers,

I received this email from the upstream guy for procps.  I'm not sure
if you need to do this or not but here is the patch.

  - Craig

----- Forwarded message from Albert D. Cahalan -----


You should apply the following patch to your C library.

-------------------------------------------------------------------------

1999-03-02  Nix  <nix@esperi.demon.co.uk>

	* stdlib/fputs.c (fputs): Return `len' rather than 0 on success.

*** 2.1/stdio/fputs.c.orig      Tue Mar  2 05:17:12 1999
--- 2.1/stdio/fputs.c   Tue Mar  2 05:18:07 1999
***************
*** 27,35 ****
  {
    const size_t len = strlen (s);
    if (len == 1)
!     return putc (*s, stream) == EOF ? EOF : 0;
    if (fwrite ((void *) s, 1, len, stream) != len)
      return EOF;
!   return 0;
  }
  weak_alias (fputs, fputs_unlocked)
--- 27,35 ----
  {
    const size_t len = strlen (s);
    if (len == 1)
!     return putc (*s, stream) == EOF ? EOF : len;
    if (fwrite ((void *) s, 1, len, stream) != len)
      return EOF;
!   return len;
  }
  weak_alias (fputs, fputs_unlocked)

----- End of forwarded message from Albert D. Cahalan -----

-- 
Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7  47 41 B1 A2 1F 46 EC 90
Eye-Net Consulting http://www.eye-net.com.au/       csmall@eye-net.com.au


Reply to: