View | Details | Raw Unified
Collapse All | Expand All

(-) rzip-2.0/main.c.orig (-1 / +9 lines)
 Lines 52-56    Link Here 
AC_CHECK_FUNCS(mmap strerror)
AC_CHECK_FUNCS(mmap strerror)
AC_CHECK_FUNCS(getopt_long)
AC_CHECK_FUNCS(getopt_long)
AC_CHECK_FUNCS(strndup)
AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile)
 Lines 118-124    Link Here 
	fchown(fd_out, st.st_uid, st.st_gid);
	fchown(fd_out, st.st_uid, st.st_gid);
}	
}	
	
#ifndef HAVE_STRNDUP
static char* strndup(const char* s, size_t n) {
	char* ret = malloc(n + 1);
	if (ret == NULL) return(ret);
	ret[n] = '\0';
	return(strncpy(ret, s, n));
}
#endif
/*
/*
  decompress one file from the command line
  decompress one file from the command line