#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/param.h>
#include <dirent.h>
#include <stdlib.h>
#include <stdio.h>
struct dirent *dir_e;
struct stat sb;
struct file_with_size *tmp;
- char subname[PATH_MAX];
+ char subname[PATH_MAX + 1];
if(lstat(name, &sb) != 0) {
fprintf(stderr, "Can not stat \"%s\": %s\n", name, strerror(errno));
}
void print_file(struct file_with_size *node) {
- char tmp[PATH_MAX];
+ char tmp[PATH_MAX + 1];
if(show_realpaths) {
if(show_groups) {
realpath(node->filename, tmp);