{
char const *entry;
size_t entry_len;
- char *name_buf = strdup (st->orig_file_name);
+ char *name_buf = xstrdup (st->orig_file_name);
size_t name_size = strlen (name_buf);
size_t name_len = name_size;
if (uid != 0 && uid == cached_no_such_uid)
{
- *uname = strdup ("");
+ *uname = xstrdup ("");
return;
}
else
{
cached_no_such_uid = uid;
- *uname = strdup ("");
+ *uname = xstrdup ("");
return;
}
}
- *uname = strdup (cached_uname);
+ *uname = xstrdup (cached_uname);
}
/* Given GID, find the corresponding GNAME. */
if (gid != 0 && gid == cached_no_such_gid)
{
- *gname = strdup ("");
+ *gname = xstrdup ("");
return;
}
else
{
cached_no_such_gid = gid;
- *gname = strdup ("");
+ *gname = xstrdup ("");
return;
}
}
- *gname = strdup (cached_gname);
+ *gname = xstrdup (cached_gname);
}
/* Given UNAME, set the corresponding UID and return 1, or else, return 0. */
xrealloc (archive_name_array,
sizeof (const char *) * allocated_archive_names);
}
- archive_name_array[archive_names++] = strdup (buf);
+ archive_name_array[archive_names++] = xstrdup (buf);
}
break;