# HG changeset patch # User Mohana Rao Gorai # Date 1396861921 25200 # Node ID 0bc80ce9fe0fb53489f77fe0e202e811898d33bc # Parent c46498f42b5b013bb4088ccd4ed74fcd09599b01 15993811 A help message type in ksh93 displays off by one diff -r c46498f42b5b -r 0bc80ce9fe0f components/ksh93/Makefile --- a/components/ksh93/Makefile Wed Apr 02 05:06:56 2014 -0700 +++ b/components/ksh93/Makefile Mon Apr 07 02:12:01 2014 -0700 @@ -76,7 +76,8 @@ Bug15794787,15819673.patch \ Bug15808407.patch Bug17714341.patch \ 17432413.patch 17824699.patch \ - 17435456.patch 17851169.patch + 17435456.patch 17851169.patch \ + Bug15993811.patch # Fixup HOSTTYPE to match uname output and bits HOSTTYPE32=sol11.$(shell uname -p) diff -r c46498f42b5b -r 0bc80ce9fe0f components/ksh93/patches/Bug15993811.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/ksh93/patches/Bug15993811.patch Mon Apr 07 02:12:01 2014 -0700 @@ -0,0 +1,11 @@ +--- a/src/cmd/ksh93/sh/nvtype.c Mon Jun 24 07:10:02 2013 ++++ b/src/cmd/ksh93/sh/nvtype.c Mon Jun 24 08:33:32 2013 +@@ -925,8 +925,6 @@ + } + offset = roundof(offset,sizeof(char*)); + nv_setsize(mp,offset); +- if(nd) +- nd++; + k = roundof(sizeof(Namtype_t),sizeof(Sfdouble_t)) - sizeof(Namtype_t); + pp = newof(NiL, Namtype_t, 1, nnodes*NV_MINSZ + offset + size + (nnodes+nd)*sizeof(char*) + iref*sizeof(struct Namref)+k); + pp->fun.dsize = sizeof(Namtype_t)+nnodes*NV_MINSZ +offset+k;