libtt: More coverity fixes

This commit is contained in:
Peter Howkins
2018-04-13 19:08:50 +01:00
parent 17101b6f4c
commit fee6003be1
19 changed files with 56 additions and 8 deletions

View File

@@ -80,9 +80,9 @@ isrename(oldname, newname)
/*
* Check that the odl and new filename are in the same directory.
*/
(void)strcpy(olddir, oldname);
snprintf(olddir, sizeof(olddir), "%s", oldname);
_removelast2(olddir);
(void)strcpy(newdir, newname);
snprintf(newdir, sizeof(newdir), "%s", newname);
_removelast2(newdir);
if (strcmp(newdir, olddir) != 0) {