Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
564782b
)
Changed strcat() calls to strlcat().
author
Wayne Davison
<wayned@samba.org>
Fri, 10 Nov 2006 03:34:51 +0000
(
03:34
+0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 10 Nov 2006 03:34:51 +0000
(
03:34
+0000)
popt/poptparse.c
patch
|
blob
|
blame
|
history
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;