public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Hans de Goede <jwrdegoede@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/xfig] epel10.2: - Fix crash when printing (#494193), thanks to Ian Dall for the patch
Date: Sat, 30 May 2026 14:28:08 GMT	[thread overview]
Message-ID: <178015128813.1.12384027545034755085.rpms-xfig-a2226855c197@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-05-30 14:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178015128813.1.12384027545034755085.rpms-xfig-a2226855c197@fedoraproject.org \
    --to=jwrdegoede@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox