public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xfig] epel10.2: - Fix crash when printing (#494193), thanks to Ian Dall for the patch
@ 2026-05-30 14:28 Hans de Goede
  0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2026-05-30 14:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xfig
Branch : epel10.2
Commit : a2226855c1973b09499d6dd388e4efa05a3e9057
Author : Hans de Goede <jwrdegoede@fedoraproject.org>
Date   : 2009-04-08T14:46:54+00:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/xfig/c/a2226855c1973b09499d6dd388e4efa05a3e9057?branch=epel10.2

Log:
- Fix crash when printing (#494193), thanks to Ian Dall for the patch

---
diff --git a/xfig-3.2.5-rh494193.patch b/xfig-3.2.5-rh494193.patch
new file mode 100644
index 0000000..1b10706
--- /dev/null
+++ b/xfig-3.2.5-rh494193.patch
@@ -0,0 +1,12 @@
+diff -up xfig.3.2.5a/w_print.c~ xfig.3.2.5a/w_print.c
+--- xfig.3.2.5a/w_print.c~	2009-04-08 16:44:24.000000000 +0200
++++ xfig.3.2.5a/w_print.c	2009-04-08 16:45:35.000000000 +0200
+@@ -958,7 +958,7 @@ void create_print_panel(Widget w)
+ 	   var and put it into the widget */
+ 	if (emptyname(printer_val)) {
+ 		printer_val=getenv("PRINTER");
+-		if (strchr(printer_val,'\\')) {
++		if (printer_val && strchr(printer_val,'\\')) {
+ 		    buf[0]='\0';
+ 		    len=0;
+ 		    for (i=0; i<strlen(printer_val); i++) {

diff --git a/xfig.spec b/xfig.spec
index 8f877e5..bca217c 100644
--- a/xfig.spec
+++ b/xfig.spec
@@ -3,7 +3,7 @@
 Summary: An X Window System tool for drawing basic vector graphics
 Name: xfig
 Version: 3.2.5
-Release: 18.a%{?dist}
+Release: 19.a%{?dist}
 License: MIT
 Group: Applications/Multimedia
 URL: http://www.xfig.org/
@@ -28,6 +28,7 @@ Patch15: xfig-3.2.5-missing-protos.patch
 Patch17: xfig-3.2.5-rh490257.patch
 Patch18: xfig-3.2.5-rh490259.patch
 Patch19: xfig-3.2.5-debian.patch
+Patch20: xfig-3.2.5-rh494193.patch
 
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
@@ -106,6 +107,7 @@ Files common to both the plain Xaw and the Xaw3d version of xfig.
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
+%patch20 -p1
 rm Doc/html/images/sav1a0.tmp
 
 
@@ -194,6 +196,9 @@ fi
 
 
 %changelog
+* Wed Apr  8 2009 Hans de Goede <hdegoede@redhat.com> 3.2.5-19.a
+- Fix crash when printing (#494193), thanks to Ian Dall for the patch
+
 * Fri Mar 27 2009 Hans de Goede <hdegoede@redhat.com> 3.2.5-18.a
 - Rebase to new upstream 3.2.5a release, this was made available to me by
   the Debian maintainer who is in contact with upstream, which appearantly

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-30 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 14:28 [rpms/xfig] epel10.2: - Fix crash when printing (#494193), thanks to Ian Dall for the patch Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox