File ksh93-limit-name-len.dif of Package ksh

--- src/cmd/ksh93/include/ulimit.h
+++ src/cmd/ksh93/include/ulimit.h	2012-02-02 11:30:00.242435132 +0000
@@ -157,7 +157,7 @@
 
 typedef struct Limit_s
 {
-	const char	name[16];
+	const char*	name;
 	const char*	description;
 	int		index;
 	const char*	conf;
--- src/cmd/ksh93/sh/init.c
+++ src/cmd/ksh93/sh/init.c	2012-02-21 11:26:13.622577250 +0100
@@ -169,7 +169,7 @@ struct match
 	char		*val;
 	char		*rval[2];
 	int		*match;
-	char		node[NV_MINSZ+sizeof(char*)];
+	char		node[NV_MINSZ+sizeof(char*)+sizeof(Dtlink_t)];
 	int		first;
 	int		vsize;
 	int		nmatch;
@@ -772,7 +772,7 @@ static int hasgetdisc(register Namfun_t
 void sh_setmatch(Shell_t *shp,const char *v, int vsize, int nmatch, int match[],int index)
 {
 	struct match	*mp = &ip->SH_MATCH_init;
-	Namval_t	*np = nv_namptr(mp->node,0); 
+	Namval_t	*np = (Namval_t*)(&(mp->node[0]));
 	register int	i,n,x, savesub=shp->subshell;
 	Namarr_t	*ap = nv_arrayptr(SH_MATCHNOD);
 	shp->subshell = 0;
openSUSE Build Service is sponsored by