Coverity gets confused by SBuf::npos value used as implicit append()
length parameter for special case when SBuf is required to call strlen()
Remove some unnecesary uses of that overloaded form of append().
key.append(request->GetHost());
}
if (tp->options.carp_key.port) {
- static char portbuf[7];
- snprintf(portbuf,7,":%d", request->port);
- key.append(portbuf);
+ key.appendf(":%d", request->port);
}
if (tp->options.carp_key.path) {
String::size_type pos;
uri.append(host);
if (port->ftp_track_dirs && master->workingDir.length()) {
if (master->workingDir[0] != '/')
- uri.append("/");
+ uri.append("/", 1);
uri.append(master->workingDir);
}
if (uri[uri.length() - 1] != '/')
- uri.append("/");
+ uri.append("/", 1);
if (port->ftp_track_dirs && file) {
static const CharacterSet Slash("/", "/");