Bug 115166 - [patch] misc/asbutton is broken for RELENG_6
Summary: [patch] misc/asbutton is broken for RELENG_6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 12:50 UTC by Eugene Grosbein
Modified: 2007-08-11 10:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2007-08-03 12:50:01 UTC
	Latest commit to ports/misc/asbbutton broke it for RELENG_6

Fix: 

Eugene Grosbein--ZrVAtqiUYN8me3gbEYULBGKIhSbzEnmZXCPHykzt9Yjgqaxb
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -urN asbutton.orig/files/patch-asbutton.c asbutton/files/patch-asbutton.c
--- asbutton.orig/files/patch-asbutton.c	2007-05-27 04:39:02.000000000 +0800
+++ asbutton/files/patch-asbutton.c	2007-08-03 19:06:51.000000000 +0800
@@ -1,14 +1,11 @@
-
-$FreeBSD: ports/misc/asbutton/files/patch-asbutton.c,v 1.1 2007/05/26 20:39:02 krion Exp $
-
---- asbutton.c.orig
-+++ asbutton.c
+--- asbutton.c.orig	1999-07-17 05:59:20.000000000 +0800
++++ asbutton.c	2007-08-03 18:13:09.000000000 +0800
 @@ -605,7 +605,7 @@
  				continue;
  	  		}
  	    	if ( !strncasecmp(line, "button", 6))
 -				if (atoi(&(char)line[6]) == position) 
-+				if (atoi((char)line[6]) == position) 
++				if (atoi(line+6) == position) 
  					break;
  		}
  	} while (1);
How-To-Repeat: 	asbutton breaks with SIGSEGV while parsing config file
	due to error in files/patch-asbutton.c
Comment 1 dfilter service freebsd_committer freebsd_triage 2007-08-11 10:21:21 UTC
rafan       2007-08-11 09:21:15 UTC

  FreeBSD ports repository

  Modified files:
    misc/asbutton        Makefile 
    misc/asbutton/files  patch-asbutton.c 
  Log:
  - Fix SIGSEGV after recent fix for gcc 4
  
  PR:             ports/115166
  Submitted by:   Eugene Grosbein <eugen at grosbein.pp.ru>
  
  Revision  Changes    Path
  1.17      +1 -1      ports/misc/asbutton/Makefile
  1.2       +3 -6      ports/misc/asbutton/files/patch-asbutton.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Rong-En Fan freebsd_committer freebsd_triage 2007-08-11 10:21:27 UTC
State Changed
From-To: open->closed

Committed. Thanks!