diff options
author | Pete Travis <immanetize@fedoraproject.org> | 2014-09-26 14:32:59 -0600 |
---|---|---|
committer | Pete Travis <immanetize@fedoraproject.org> | 2014-09-26 14:32:59 -0600 |
commit | fe5673aed2053463a7164ec5e7b609877340c0fa (patch) | |
tree | f7db962c06e191244951fa2f415c79325051892d /SOURCES/bash-3.1-wcschr.dif | |
parent | 08b01b8f3f227bda87ee2591c7e6ccb379fad187 (diff) | |
download | rpmbuild-fe5673aed2053463a7164ec5e7b609877340c0fa.tar.gz rpmbuild-fe5673aed2053463a7164ec5e7b609877340c0fa.tar.xz rpmbuild-fe5673aed2053463a7164ec5e7b609877340c0fa.zip |
SLES10 bash init
Diffstat (limited to 'SOURCES/bash-3.1-wcschr.dif')
-rw-r--r-- | SOURCES/bash-3.1-wcschr.dif | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/SOURCES/bash-3.1-wcschr.dif b/SOURCES/bash-3.1-wcschr.dif new file mode 100644 index 0000000..00c3aaa --- /dev/null +++ b/SOURCES/bash-3.1-wcschr.dif @@ -0,0 +1,13 @@ +--- subst.c ++++ subst.c 2006-05-31 16:59:58.000000000 +0000 +@@ -946,8 +946,9 @@ + len = mbstowcs (wcharlist, charlist, 0); + if (len == -1) + len = 0; +- wcharlist = xmalloc ((sizeof (wchar_t) * len) + 1); ++ wcharlist = xmalloc ((sizeof (wchar_t)) * (len + 1)); + mbstowcs (wcharlist, charlist, len); ++ wcharlist[len] = (wchar_t)0; + } + + if (wcschr (wcharlist, wc)) |