mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- fix segfault in ppmcolormask with stdin
Submitted by: Peter Jeremy Approved by: portmgr (marcus)
This commit is contained in:
parent
1dc56d9ba9
commit
a2783a3300
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131918
2 changed files with 21 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= netpbm
|
||||
PORTVERSION= 10.26.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
20
graphics/netpbm/files/patch-lib-libpm.c
Normal file
20
graphics/netpbm/files/patch-lib-libpm.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- lib/libpm.c~ Sun Nov 21 03:55:27 2004
|
||||
+++ lib/libpm.c Sat Mar 19 12:39:00 2005
|
||||
@@ -617,7 +617,7 @@
|
||||
pm_openr(const char * const name) {
|
||||
FILE* f;
|
||||
|
||||
- if (strcmp(name, "-") == 0)
|
||||
+ if (name == NULL || strcmp(name, "-") == 0)
|
||||
f = stdin;
|
||||
else {
|
||||
#ifndef VMS
|
||||
@@ -639,7 +639,7 @@
|
||||
pm_openw(const char * const name) {
|
||||
FILE* f;
|
||||
|
||||
- if (strcmp(name, "-") == 0)
|
||||
+ if (name == NULL || strcmp(name, "-") == 0)
|
||||
f = stdout;
|
||||
else {
|
||||
#ifndef VMS
|
Loading…
Add table
Reference in a new issue