rpms/touchcal/EL-5 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:56:29 UTC 2009
- Previous message: rpms/pyabiword/F-10 .cvsignore, 1.2, 1.3 pyabiword.spec, 1.1, 1.2 sources, 1.2, 1.3
- Next message: rpms/touchcal/EL-4 touchcal-0.31-strncpy.patch, NONE, 1.1 touchcal.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: sharkcz
Update of /cvs/pkgs/rpms/touchcal/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12439
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/EL-5/.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:55:59 -0000 1.2
@@ -0,0 +1 @@
+touchcal-0.31.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/touchcal/EL-5/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:55:59 -0000 1.2
@@ -0,0 +1 @@
+253032b585254056e19c56827ed9f539 touchcal-0.31.tar.gz
- Previous message: rpms/pyabiword/F-10 .cvsignore, 1.2, 1.3 pyabiword.spec, 1.1, 1.2 sources, 1.2, 1.3
- Next message: rpms/touchcal/EL-4 touchcal-0.31-strncpy.patch, NONE, 1.1 touchcal.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list