Bugfix: "feh --montage" failed to create images, claiming "Low on

RAM" or segfaulting (git commit 412316900b62656d7e25ce07cb4a7af3f2bce26e)
This commit is contained in:
dcoppa 2011-12-27 12:23:43 +00:00
parent 3c6e6e0934
commit 62b85425d1
2 changed files with 22 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.33 2011/11/30 14:15:39 dcoppa Exp $
# $OpenBSD: Makefile,v 1.34 2011/12/27 12:23:43 dcoppa Exp $
COMMENT= lightweight image viewer
DISTNAME= feh-2.1
REVISION= 0
REVISION= 1
EXTRACT_SUFX= .tar.bz2
CATEGORIES= graphics

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_index_c,v 1.1 2011/12/27 12:23:43 dcoppa Exp $
Bugfix: "feh --montage" failed to create images, claiming "Low on
RAM" or segfaulting (git commit 412316900b62656d7e25ce07cb4a7af3f2bce26e)
--- src/index.c.orig Tue Dec 27 13:13:09 2011
+++ src/index.c Tue Dec 27 13:14:07 2011
@@ -425,8 +425,11 @@ void get_index_string_dim(feh_file *file, Imlib_Font f
gib_list *line, *lines;
int max_w = 0, total_h = 0;
- if (!opt.index_info)
+ if (!opt.index_info) {
+ *fw = 0;
+ *fh = 0;
return;
+ }
/* called with file = NULL in the setup phase.
* We need a fake file, otherwise feh_printf will remove format specifiers,