From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 23-AUG-1990 22:04:57.12
To:	MRGATE::"ARISIA::EVERHART"
CC:	
Subj:	PBMPLUS patches 2/3

Received:  by crdgw1.ge.com (5.57/GE 1.70)
	 id AA14314; Thu, 23 Aug 90 21:46:02 EDT
Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Thu, 23 AUG 90 14:05:39 PDT
Received: by ucbvax.Berkeley.EDU (5.63/1.42)
	id AA22444; Thu, 23 Aug 90 13:52:07 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 23 Aug 90 13:58:08 GMT
From: maverick.ksu.ksu.edu!deimos.cis.ksu.edu!mccall!tp@uunet.uu.net
Organization: The McCall Pattern Co., Manhattan, KS, USA
Subject: PBMPLUS patches 2/3
Message-Id: <22.26d3e0f1@mccall.com>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

Submitted-by: tp@mccall.com (Terry Poot)
Archive-name: pbmplus/patch2-part2

Move to the pgm subdirectory of the PBMPLUS tree to apply this patch. It
patches the programs pgmnorm and pgmtopbm.

*** pgmnorm.c;-1
--- pgmnorm.c
**************
*** 55,61
  		pm_error(
  		    "only one of -bpercent and -bvalue may be specified",
  		    0,0,0,0,0 );
! 	    if ( sscanf( argv[argn+1], "%g", &bpercent ) != 1 )
  		pm_usage( usage );
  	    if ( bpercent < 0.0  || bpercent > 100.0 )
  		pm_error(
--- 55,61 -----
  		pm_error(
  		    "only one of -bpercent and -bvalue may be specified",
  		    0,0,0,0,0 );
! 	    if ( sscanf( argv[argn+1], "%f", &bpercent ) != 1 )
  		pm_usage( usage );
  	    if ( bpercent < 0.0  || bpercent > 100.0 )
  		pm_error(
**************
*** 80,86
  		pm_error(
  		    "only one of -wpercent and -wvalue may be specified",
  		    0,0,0,0,0 );
! 	    if ( sscanf( argv[argn+1], "%g", &wpercent ) != 1 )
  		pm_usage( usage );
  	    if ( wpercent < 0.0 || wpercent > 100.0 )
  		pm_error(
--- 80,86 -----
  		pm_error(
  		    "only one of -wpercent and -wvalue may be specified",
  		    0,0,0,0,0 );
! 	    if ( sscanf( argv[argn+1], "%f", &wpercent ) != 1 )
  		pm_usage( usage );
  	    if ( wpercent < 0.0 || wpercent > 100.0 )
  		pm_error(
*** pgmtopbm.c;-1
--- pgmtopbm.c
**************
*** 79,85
  	else if ( strncmp(argv[argn],"-value",max(strlen(argv[argn]),2)) == 0 )
  	    {
  	    argn++;
! 	    if ( argn == argc || sscanf( argv[argn], "%g", &fthreshval ) != 1 ||
  		 fthreshval < 0.0 || fthreshval > 1.0 )
  		pm_usage( usage );
  	    }
--- 79,85 -----
  	else if ( strncmp(argv[argn],"-value",max(strlen(argv[argn]),2)) == 0 )
  	    {
  	    argn++;
! 	    if ( argn == argc || sscanf( argv[argn], "%f", &fthreshval ) != 1 ||
  		 fthreshval < 0.0 || fthreshval > 1.0 )
  		pm_usage( usage );
  	    }


-- 
Terry Poot <tp@mccall.com>                The McCall Pattern Company
(uucp: ...!rutgers!ksuvax1!mccall!tp)     615 McCall Road
(800)255-2762, in KS (913)776-4041        Manhattan, KS 66502, USA

