// Make sure .local hostnames end with a period...
if (strlen(s) > 6 && !strcmp(s + strlen(s) - 6, ".local"))
- strlcat(s, ".", (size_t)slen);
+ cupsConcatString(s, ".", (size_t)slen);
}
// Convert the hostname to lowercase as needed...
else if ((mcombined = realloc(http->fields[field], total + 1)) != NULL)
{
http->fields[field] = mcombined;
- strlcat(mcombined, ", ", total + 1);
- strlcat(mcombined, value, total + 1);
+ cupsConcatString(mcombined, ", ", total + 1);
+ cupsConcatString(mcombined, value, total + 1);
}
}
else
for (i = 0; args[i]; i ++)
{
- strlcat(command, " ", sizeof(command));
- strlcat(command, args[i], sizeof(command));
+ cupsConcatString(command, " ", sizeof(command));
+ cupsConcatString(command, args[i], sizeof(command));
}
- strlcat(command, "\n", sizeof(command));
+ cupsConcatString(command, "\n", sizeof(command));
return (do_command(outfd, infd, command));
}