fs/: Fix various coding standard issues found while testing tools/nxstyle.c

This commit is contained in:
Gregory Nutt
2019-03-01 15:00:00 -06:00
parent 4ae7373427
commit be3dd0bac6
44 changed files with 206 additions and 144 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ static int binfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
finfo("Entry %d: \"%s\"\n", index, name);
dir->fd_dir.d_type = DTYPE_FILE;
strncpy(dir->fd_dir.d_name, name, NAME_MAX+1);
strncpy(dir->fd_dir.d_name, name, NAME_MAX + 1);
/* The application list is terminated by an entry with a NULL name.
* Therefore, there is at least one more entry in the list.