diff --git a/ChangeLog b/ChangeLog index 6272862a9cab3dd2ec2e8cd728dc1436a6347770..b89d2180dec829a0538bb9e7c5735af5f69ae8f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -77,7 +77,7 @@ - Count the size of a hard linked file once for each directory it appears in - Fixed crash on browsing dirs with a small window size (#2991787) - Fixed buffer overflow when some directories can't be scanned (#2981704) - - Fixed segfault when launched on a nonexistant directory (#3012787) + - Fixed segfault when launched on a nonexistent directory (#3012787) - Fixed segfault when root dir only contains hidden files - Improved browsing performance - More intuitive multi-page browsing diff --git a/deps/yopt.h b/deps/yopt.h index 98d969b91f10925c2cdff485d854f268593e1e6e..f1a3b7ef55a9426f27fcb44e564721d75ca25d92 100644 --- a/deps/yopt.h +++ b/deps/yopt.h @@ -35,7 +35,7 @@ * "-f<arg>" * "-zf <arg>" * "-zf<arg>" - * "--" (To stop looking for futher options) + * "--" (To stop looking for further options) * "<arg>" (Non-option arguments) * * Issues/non-features: @@ -62,7 +62,7 @@ typedef struct { int needarg; /* Name(s) of this option, prefixed with '-' or '--' and separated by a * comma. E.g. "-z", "--gzip", "-z,--gzip". - * An option can have any number of aliasses. + * An option can have any number of aliases. */ const char *name; } yopt_opt_t; diff --git a/doc/ncdu.pod b/doc/ncdu.pod index af8bbb068f5479438ba1fa7eaa93e4aa981d25ac..56ae0257cf9242115635608e44504b31b33b9aeb 100644 --- a/doc/ncdu.pod +++ b/doc/ncdu.pod @@ -315,7 +315,7 @@ correct. =item < -File or directory is excluded from the statistics by using exlude patterns. +File or directory is excluded from the statistics by using exclude patterns. =item > diff --git a/src/dir.h b/src/dir.h index ec927337c8c8bf38e5b277ca948e00e7434c1f3a..fc33eb011e2187d5dde55adde9b285e98104443d 100644 --- a/src/dir.h +++ b/src/dir.h @@ -61,7 +61,7 @@ struct dir_output { * * The *item struct has the following fields set when item() is called: * size, asize, ino, dev, flags (only DIR,FILE,ERR,OTHFS,EXL,HLNKC). - * All other fields/flags should be initialzed to NULL or 0. + * All other fields/flags should be initialized to NULL or 0. * The name and dir_ext fields are given separately. * All pointers may be overwritten or freed in subsequent calls, so this * function should make a copy if necessary. diff --git a/src/dir_scan.c b/src/dir_scan.c index 1696025eb589220bd1406def2c3cab92a24965c2..e145ac2b52a576311a14ca9b7dd8ff6770390020 100644 --- a/src/dir_scan.c +++ b/src/dir_scan.c @@ -60,7 +60,7 @@ static struct dir_ext buf_ext[1]; #if HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS -int exclude_kernfs; /* Exlude Linux pseudo filesystems */ +int exclude_kernfs; /* Exclude Linux pseudo filesystems */ static int is_kernfs(unsigned long type) { if(type == BINFMTFS_MAGIC || diff --git a/src/main.c b/src/main.c index 13b6de8c410416ec7b59d96ba10fe7af9b40161f..44da3d1dd3d8ca7ee579312b40ef0c44298a4a12 100644 --- a/src/main.c +++ b/src/main.c @@ -47,7 +47,7 @@ int confirm_quit = 0; static int min_rows = 17, min_cols = 60; static int ncurses_init = 0; -static int ncurses_tty = 0; /* Explicitely open /dev/tty instead of using stdio */ +static int ncurses_tty = 0; /* Explicitly open /dev/tty instead of using stdio */ static long lastupdate = 999; diff --git a/src/path.h b/src/path.h index b7ee6d85b6c4c0a1f207da41a8c171a8ca46044a..773da9dd9c003817f909bb6485c4969f9b8a16cf 100644 --- a/src/path.h +++ b/src/path.h @@ -30,7 +30,7 @@ - path_real uses chdir(), so it's not thread safe - Process requires +x access for all directory components - Potentionally slow - - path_real doesn't check for the existance of the last component + - path_real doesn't check for the existence of the last component - cwd is unreliable after path_real */ diff --git a/src/util.c b/src/util.c index 84489568f7f73ee14732f8dde84350ab4ac8e2da..2d92718d04d465ee808b6978e986aef7be8c2fdb 100644 --- a/src/util.c +++ b/src/util.c @@ -109,7 +109,7 @@ char *fullsize(int64_t from) { } while((n /= 10) > 0); tmp[i] = '\0'; - /* reverse and add thousand seperators */ + /* reverse and add thousand separators */ j = 0; while(i--) { dat[j++] = tmp[i]; @@ -288,7 +288,7 @@ static void freedir_hlnk(struct dir *d) { /* remove size from parents. * This works the same as with adding: only the parents in which THIS is the - * only occurence of the hard link will be modified, if the same file still + * only occurrence of the hard link will be modified, if the same file still * exists within the parent it shouldn't get removed from the count. * XXX: Same note as for dir_mem.c / hlink_check(): * this is probably not the most efficient algorithm */