aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-01-07 22:28:52 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-01-07 22:28:52 +0100
commit52a7c4ca9ae542e8e768daaffed6e3122b71d503 (patch)
treec3bb13b69ba38dca40b14779e372bb769fb66c0c
parenteb2632a84364899d0d9ce880802d259cf8814006 (diff)
downloadcolorize-52a7c4ca9ae542e8e768daaffed6e3122b71d503.tar.gz
colorize-52a7c4ca9ae542e8e768daaffed6e3122b71d503.tar.bz2
Fix spelling of preceeded
I: colorize: spelling-error-in-binary usr/bin/colorize preceeded preceded
-rw-r--r--colorize.c4
-rwxr-xr-xt/fail.t4
2 files changed, 4 insertions, 4 deletions
diff --git a/colorize.c b/colorize.c
index a891135..70de848 100644
--- a/colorize.c
+++ b/colorize.c
@@ -554,7 +554,7 @@ process_args (unsigned int arg_cnt, char **arg_strings, bool *bold, const struct
if (file_string)
vfprintf_fail (formats[FMT_GENERIC], "hyphen cannot be used as color string");
else
- vfprintf_fail (formats[FMT_GENERIC], "hyphen must be preceeded by color string");
+ vfprintf_fail (formats[FMT_GENERIC], "hyphen must be preceded by color string");
}
ret = lstat (color_string, &sb);
@@ -684,7 +684,7 @@ skip_path_colors (const char *color_string, const char *file_string, const struc
else
{
if (VALID_FILE_TYPE (mode))
- vfprintf_fail (formats[FMT_QUOTE], get_file_type (mode), file_exists, "must be preceeded by color string");
+ vfprintf_fail (formats[FMT_QUOTE], get_file_type (mode), file_exists, "must be preceded by color string");
else
vfprintf_fail (formats[FMT_QUOTE], get_file_type (mode), file_exists, "is not a valid file type");
}
diff --git a/t/fail.t b/t/fail.t
index a72e9ab..b152094 100755
--- a/t/fail.t
+++ b/t/fail.t
@@ -45,9 +45,9 @@ SKIP: {
[ '--clean file1 file2', 'more than one file' ],
[ '--clean-all file1 file2', 'more than one file' ],
[ '- file', 'hyphen cannot be used as color string' ],
- [ '-', 'hyphen must be preceeded by color string' ],
+ [ '-', 'hyphen must be preceded by color string' ],
[ "$file file", 'cannot be used as color string' ],
- [ "$file", 'must be preceeded by color string' ],
+ [ "$file", 'must be preceded by color string' ],
[ "$dir", 'is not a valid file type' ],
[ '/black', 'foreground color missing' ],
[ 'white/', 'background color missing' ],