size to 128 bytes. The buffer should be allocated dynamically
here.
SVN-Revision: 907
static const char *
lookup_uname_helper(struct archive *a, id_t id)
{
- char buffer[64];
+ char buffer[128];
struct passwd pwent, *result;
int r;
if (result == NULL)
return (NULL);
- return strdup(pwent.pw_name);
+ return strdup(result->pw_name);
}
static const char *
static const char *
lookup_gname_helper(struct archive *a, id_t id)
{
- char buffer[64];
+ char buffer[128];
struct group grent, *result;
int r;
if (result == NULL)
return (NULL);
- return strdup(grent.gr_name);
+ return strdup(result->gr_name);
}
#endif /* ! (_WIN32 && !__CYGWIN__) */