[comp.sources.d] v14i067: Mp v2.4.5 - the mail/news pretty printer

amos@taux01.nsc.com (Amos Shapir) (09/02/90)

Following is a small fix to misc.c:  Interpreting a '&' in the GECOS field
should capitalize only the first letter of the login name, not all of it.

		o /		o /		o /		o /
--Cut-here-------X---------------X---------------X---------------X----
		o \		o \		o \		o \

*** misc.c.orig	Thu Aug 30 16:58:38 1990
--- misc.c	Sun Sep  2 09:23:12 1990
***************
*** 161,169
                 if (*ptr == ',') break ;
            else if (*ptr == '&')
              {
!               for (j = 0; j < strlen(c); j++)
!                 if (islower(c[j])) owner[n++] = toupper(c[j]) ;
!                 else owner[n++] = c[j] ;
                *ptr++ ;
              }
            else if (*ptr == ' ')

--- 161,169 -----
                 if (*ptr == ',') break ;
            else if (*ptr == '&')
              {
! 	      if (islower(c[0])) owner[n++] = toupper(c[0]) ;
!               for (j = 1; j < strlen(c); j++)
!                 owner[n++] = c[j] ;
                *ptr++ ;
              }
            else if (*ptr == ' ')

		o /		o /		o /		o /
--Cut-here-------X---------------X---------------X---------------X----
		o \		o \		o \		o \
May the Source be with you, always...
-- 
	Amos Shapir		amos@taux01.nsc.com, amos@nsc.nsc.com
National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel
Tel. +972 52 522331  TWX: 33691, fax: +972-52-558322 GEO: 34 48 E / 32 10 N