Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't apply filter rules to implied directories.
[rsync/rsync.git]
/
popt
/
poptparse.c
diff --git
a/popt/poptparse.c
b/popt/poptparse.c
index
7bc3a96
..
bb3b69d
100644
(file)
--- a/
popt/poptparse.c
+++ b/
popt/poptparse.c
@@
-188,8
+188,8
@@
int poptConfigFileToString(FILE *fp, char ** argstrp, /*@unused@*/ UNUSED(int fl
argstr = realloc(argstr, maxargvlen);
if (argstr == NULL) return POPT_ERROR_MALLOC;
}
argstr = realloc(argstr, maxargvlen);
if (argstr == NULL) return POPT_ERROR_MALLOC;
}
- str
cat(argstr, " --"
);
- str
cat(argstr, p
);
+ str
lcat(argstr, " --", maxargvlen
);
+ str
lcat(argstr, p, maxargvlen
);
continue;
}
if (*q != '=')
continue;
}
if (*q != '=')
@@
-217,11
+217,11
@@
int poptConfigFileToString(FILE *fp, char ** argstrp, /*@unused@*/ UNUSED(int fl
argstr = realloc(argstr, maxargvlen);
if (argstr == NULL) return POPT_ERROR_MALLOC;
}
argstr = realloc(argstr, maxargvlen);
if (argstr == NULL) return POPT_ERROR_MALLOC;
}
- str
cat(argstr, " --"
);
- str
cat(argstr, p
);
- str
cat(argstr, "=\""
);
- str
cat(argstr, q
);
- str
cat(argstr, "\""
);
+ str
lcat(argstr, " --", maxargvlen
);
+ str
lcat(argstr, p, maxargvlen
);
+ str
lcat(argstr, "=\"", maxargvlen
);
+ str
lcat(argstr, q, maxargvlen
);
+ str
lcat(argstr, "\"", maxargvlen
);
}
*argstrp = argstr;
}
*argstrp = argstr;