Bug 1775 - pnm2ppa fix
Bug#: 1775 Product:  Gentoo Linux Version: 1.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: seemant@gentoo.org Reported By: pauldv@gentoo.org
Component: Applications
URL: 
Summary: pnm2ppa fix
Keywords:  
Status Whiteboard: 
Opened: 2002-04-14 15:12 0000
Description:   Opened: 2002-04-14 15:12 0000
I found a bug in pnm2ppa (allready reported upstream) that causes havoc with
high 
optimization. A helper function of the command line parser forgets to allocate
memory for 
a returned string, but instead uses the stack. This doesn't work with multiple
options. 
My patch is for the gentoo-diff file, and patches pnm2ppa.c too

------- Comment #1 From Paul de Vrieze 2002-04-14 15:12:59 0000 -------
Created an attachment (id=564) [details]
patch to pnm2ppa-1.0.91-r1-gentoo.diff

------- Comment #2 From Seemant Kulleen (RETIRED) 2002-04-14 15:53:38 0000 -------
bit of a confusing patch you sent in
the patch for the gentoo-diff in files doesn't change anything

Anyway, thanks for the rest of the diff.  I have committed it to portage.