rpms/touchcal/F-10 touchcal-0.31-strncpy.patch, NONE, 1.1 touchcal.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dan Horák sharkcz at fedoraproject.org
Mon Mar 9 18:07:16 UTC 2009


Author: sharkcz

Update of /cvs/pkgs/rpms/touchcal/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29995

Modified Files:
	.cvsignore sources 
Added Files:
	touchcal-0.31-strncpy.patch touchcal.spec 
Log Message:
initial import

touchcal-0.31-strncpy.patch:

--- NEW FILE touchcal-0.31-strncpy.patch ---
>From 5f67053c9f53fd3e116cb53d3cfd891f7655bd3f Mon Sep 17 00:00:00 2001
From: Dan Horak <dan at danny.cz>
Date: Tue, 3 Feb 2009 11:58:58 +0100
Subject: [PATCH] fix string overflow

---
 touchcal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/touchcal.c b/touchcal.c
index 7341fd7..b7b192b 100644
--- a/touchcal.c
+++ b/touchcal.c
@@ -139,7 +139,7 @@ static void init_mu(char dev[])
 	set_page[4]=0x0d;
 
 	/*define data string*/
-	strcpy(data,"00180769001D0793");
+	strncpy(data,"00180769001D0793",16);
 
 	bzero(&newtio, sizeof(newtio)); /* clear struct for new port settings */
 
-- 
1.6.0.6



--- NEW FILE touchcal.spec ---
Name:           touchcal
Version:        0.31
Release:        1%{?dist}
Summary:        Calibration utility for touch screens

Group:          User Interface/X Hardware Support
License:        GPLv2+
URL:            http://touchcal.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         %{name}-0.31-strncpy.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ncurses-devel


%description
touchcal is a tool to calibrate touch screens with serial controllers from the
manufacturers EloGraphics (IntelliTouch E281-2310) and MicroTouch (SMT3 serial)
for use under Xorg.


%prep
%setup -q
%patch0 -p1 -b .strncpy


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/touchcal


%changelog
* Tue Feb  3 2009 Dan Horák <dan at danny.cz> 0.31-1
- update to upstream version 0.31

* Mon Jun  6 2006 Dan Horák <dan at danny.cz> 0.23-1
- initial package for Fedora Extras



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/touchcal/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	9 Mar 2009 15:59:06 -0000	1.1
+++ .cvsignore	9 Mar 2009 18:06:46 -0000	1.2
@@ -0,0 +1 @@
+touchcal-0.31.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/touchcal/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	9 Mar 2009 15:59:06 -0000	1.1
+++ sources	9 Mar 2009 18:06:46 -0000	1.2
@@ -0,0 +1 @@
+253032b585254056e19c56827ed9f539  touchcal-0.31.tar.gz




More information about the fedora-extras-commits mailing list