Date: Mon, 31 May 1999 19:26:13 +0900 (JST) From: candy@kgc.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: ports/11957: fix: netpbm/xbmtopbm can't handle some xbm files Message-ID: <199905311026.TAA42632@xxx.kgc.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 11957 >Category: ports >Synopsis: fix: netpbm/xbmtopbm can't handle some xbm files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 31 03:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: candy >Release: FreeBSD 3.2-RELEASE i386 >Organization: >Environment: ports/current >Description: Some graphic tools generates xbm file in ``unsigned char'' type array. And xbmtopbm can't read them at all. >How-To-Repeat: >Fix: cd /usr/ports/graphics/netpbm make patch cd work/netpbm patch -p < this_patch --- pbm/xbmtopbm.c.orig Mon Oct 4 18:10:33 1993 +++ pbm/xbmtopbm.c Thu Nov 5 16:13:37 1998 @@ -116,6 +116,16 @@ version10 = 0; break; } + if ( sscanf( line, "static unsigned short %s = {", name_and_type ) == 1 ) /* } */ + { + version10 = 1; + break; + } + if ( sscanf( line, "static unsigned char %s = {", name_and_type ) == 1 ) /* } */ + { + version10 = 0; + break; + } } if ( *widthP == -1 ) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905311026.TAA42632>