Module Name:    src
Committed By:   riz
Date:           Wed Sep  7 18:21:41 UTC 2011

Modified Files:
        src/usr.bin/tr: str.c

Log Message:
Remove newly-introduced const qualifier from static CLASS classes[],
as CLASS->set gets changed in genclass().  Fixes a segfault doing:

tr '[:lower:]' '[:upper:]'

on (at least) amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/tr/str.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tr/str.c
diff -u src/usr.bin/tr/str.c:1.13 src/usr.bin/tr/str.c:1.14
--- src/usr.bin/tr/str.c:1.13	Tue Sep  6 18:33:46 2011
+++ src/usr.bin/tr/str.c	Wed Sep  7 18:21:41 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: str.c,v 1.13 2011/09/06 18:33:46 joerg Exp $	*/
+/*	$NetBSD: str.c,v 1.14 2011/09/07 18:21:41 riz Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)str.c	8.2 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: str.c,v 1.13 2011/09/06 18:33:46 joerg Exp $");
+__RCSID("$NetBSD: str.c,v 1.14 2011/09/07 18:21:41 riz Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -151,7 +151,7 @@
 	int *set;
 } CLASS;
 
-static const CLASS classes[] = {
+static CLASS classes[] = {
 	{ "alnum",  isalnum,  NULL, },
 	{ "alpha",  isalpha,  NULL, },
 	{ "blank",  isblank,  NULL, },

Reply via email to