pr_info("Drawing image %s\n", image->image_filename);
tmpfile[0] = 0;
- strncat(tmpfile, image->image_filename, sizeof(tmp) - strlen(tmp) - 1);
- strncat(tmpfile, ".tmp", sizeof(tmp) - strlen(tmp) - 1);
+ tmp[0] = 0;
+ strncat(tmpfile, image->image_filename, sizeof(tmpfile) - 1);
+ strncat(tmpfile, ".tmp", sizeof(tmpfile) - 1);
if (image->updatestr)
updatestr = image->updatestr;