openbsd-ports/graphics/glut/patches/patch-lib_glut_strokelex_l

13 lines
417 B
Plaintext

$OpenBSD: patch-lib_glut_strokelex_l,v 1.2 2005/11/20 18:03:25 naddy Exp $
--- lib/glut/strokelex.l.orig Sun Nov 20 18:53:41 2005
+++ lib/glut/strokelex.l Sun Nov 20 18:52:58 2005
@@ -103,7 +103,7 @@ char str[];
reserved = res_table;
do
- if (!strcmp(str, reserved->word))
+ if (!strncmp(str, reserved->word, sizeof(str)))
break;
while ((++reserved)->word != 0);
return reserved->token;