Blame SOURCES/ksh-20120801-nv_open-memcmp.patch

dc1902
diff --git a/src/cmd/ksh93/sh/name.c b/src/cmd/ksh93/sh/name.c
dc1902
--- a/src/cmd/ksh93/sh/name.c
dc1902
+++ b/src/cmd/ksh93/sh/name.c
dc1902
@@ -1425,7 +1425,7 @@ Namval_t *nv_open(const char *name, Dt_t *root, int flags)
dc1902
 	{
dc1902
 		if(xp->root!=root)
dc1902
 			continue;
dc1902
-		if(*name==*xp->name && xp->namespace==shp->namespace && (flags&(NV_ARRAY|NV_NOSCOPE))==xp->flags && memcmp(xp->name,name,xp->len)==0 && (name[xp->len]==0 || name[xp->len]=='=' || name[xp->len]=='+'))
dc1902
+		if(*name==*xp->name && xp->namespace==shp->namespace && (flags&(NV_ARRAY|NV_NOSCOPE))==xp->flags && strncmp(xp->name,name,xp->len)==0 && (name[xp->len]==0 || name[xp->len]=='=' || name[xp->len]=='+'))
dc1902
 		{
dc1902
 			sh_stats(STAT_NVHITS);
dc1902
 			np = xp->np;