Skip to content
Snippets Groups Projects
Commit 58f36940 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

string_expand used hardcoded size instead of bufsiz argument.

pointed out by Jorg Pietschmann <pietsch@swissline.ch>.
parent b2ec7af3
Branches
Tags
No related merge requests found
......@@ -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 == '$') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment