ports/misc/asbutton/files/patch-asbutton.c
Rong-En Fan 2cb4f999be - Fix SIGSEGV after recent fix for gcc 4
PR:		ports/115166
Submitted by:	Eugene Grosbein <eugen at grosbein.pp.ru>
2007-08-11 09:21:15 +00:00

11 lines
308 B
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(line+6) == position)
break;
}
} while (1);