rpms/tcsh/devel tcsh-6.14.00-unprintable.patch, NONE, 1.1 tcsh.spec, 1.47, 1.48

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 25 12:48:21 UTC 2007


Author: vcrhonek

Update of /cvs/dist/rpms/tcsh/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17315

Modified Files:
	tcsh.spec 
Added Files:
	tcsh-6.14.00-unprintable.patch 
Log Message:
fix unprintable (#233525)

tcsh-6.14.00-unprintable.patch:
 tw.parse.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE tcsh-6.14.00-unprintable.patch ---
--- tcsh-6.14.00/tw.parse.c.old	2007-04-24 16:46:32.000000000 +0200
+++ tcsh-6.14.00/tw.parse.c	2007-04-24 17:02:28.000000000 +0200
@@ -2065,7 +2065,8 @@
 	     (Strchr(val, 'x') != NULL);
 
     for (i = 0; i < count; i++)	{ /* find widest string */
-	maxwidth = max(maxwidth, (unsigned int) NLSStringWidth(items[i]));
+        if (NLSStringWidth(items[i]) != -1)
+	    maxwidth = max(maxwidth, (unsigned int) NLSStringWidth(items[i]));
     }
 
     maxwidth += no_file_suffix ? 1 : 2;	/* for the file tag and space */


Index: tcsh.spec
===================================================================
RCS file: /cvs/dist/rpms/tcsh/devel/tcsh.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- tcsh.spec	26 Feb 2007 15:55:08 -0000	1.47
+++ tcsh.spec	25 Apr 2007 12:48:19 -0000	1.48
@@ -3,7 +3,7 @@
 Summary: An enhanced version of csh, the C shell
 Name: tcsh
 Version: 6.14
-Release: 15
+Release: 16
 License: BSD
 Group: System Environment/Shells
 Source: ftp://ftp.astron.com/pub/tcsh/tcsh-%{version}.00.tar.gz
@@ -20,6 +20,7 @@
 Patch10: tcsh-6.14.00-spell-crash.patch
 Patch11: tcsh-6.14.00-remotehost.patch
 Patch12: tcsh-6.14.00-tinfo.patch
+Patch13: tcsh-6.14.00-unprintable.patch
 Provides: csh = %{version}
 Requires(post): grep
 Requires(postun): coreutils, grep
@@ -50,6 +51,7 @@
 %patch10 -p1 -b .spell-crash
 %patch11 -p1 -b .remotehost
 %patch12 -p1 -b .tinfo
+%patch13 -p1 -b .unprintable
 
 %build
 # For tcsh-6.14.00-tinfo.patch
@@ -117,6 +119,10 @@
 %{_mandir}/*/*
 
 %changelog
+* Wed Apr 25 2007 Vitezslav Crhonek <vcrhonek at redhat.com> 6.14-16
+- Fix floating exception in print_by_column() with unprintable characters
+  (#233525)
+
 * Mon Feb 26 2007 Miloslav Trmac <mitr at redhat.com> - 6.14-15
 - Fix License:
   Related: #226483.




More information about the fedora-cvs-commits mailing list