* libmisc/remove_tree.c: Ignore snprintf return value.

This commit is contained in:
nekral-guest 2010-08-20 20:27:34 +00:00
parent 660ed49daf
commit 07e67e1350
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/remove_tree.c: Ignore snprintf return value.
2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h, libmisc/list.c: dup_list() and is_on_list() do

View File

@ -96,7 +96,7 @@ int remove_tree (const char *root, bool remove_root)
err = -1;
break;
}
snprintf (new_name, new_len, "%s/%s", root, ent->d_name);
(void) snprintf (new_name, new_len, "%s/%s", root, ent->d_name);
if (LSTAT (new_name, &sb) == -1) {
continue;
}