string_expand used hardcoded size instead of bufsiz argument.

pointed out by Jorg Pietschmann <pietsch@swissline.ch>.
This commit is contained in:
Kurt Zeilenga 1998-11-24 02:29:53 +00:00
parent b2ec7af331
commit 58f36940c5

View File

@ -478,7 +478,7 @@ string_expand(
newbuf[0] = '\0';
flag = 0;
for ( dp = newbuf, sp = pat; size < 512 && *sp ; sp++) {
for ( dp = newbuf, sp = pat; size < bufsiz && *sp ; sp++) {
/* did we previously see a $ */
if (flag) {
if (*sp == '$') {