tmpfile[0] = 0;
tmp[0] = 0;
strncpy(tmpfile, image->image_filename, sizeof(tmpfile) - 1);
- strncat(tmpfile, ".tmp",
- sizeof(tmpfile) - strlen(image->image_filename) - 1);
+ _strlcat(tmpfile, ".tmp", sizeof(tmpfile));
if (image->updatestr)
updatestr = image->updatestr;