summaryrefslogtreecommitdiff
path: root/cat
diff options
context:
space:
mode:
authorGraham Percival <graham@percival-music.ca>2016-12-03 15:00:40 -0800
committerJoerg Sonnenberger <joerg@bec.de>2016-12-04 00:00:40 +0100
commit17feb73ffcb0a955c42e1964c47da046976e7734 (patch)
tree851fc4574740fdfe921fb3e9018cf6715fcd4d7f /cat
parentcaf9b87de21222aa32c3a9b5c620286b2717e71c (diff)
downloadlibarchive-17feb73ffcb0a955c42e1964c47da046976e7734.tar.gz
Spelling fixes (#831)
Sponsored by: Tarsnap Backup Inc.
Diffstat (limited to 'cat')
-rw-r--r--cat/test/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cat/test/main.c b/cat/test/main.c
index a5798429..cdfdd9bd 100644
--- a/cat/test/main.c
+++ b/cat/test/main.c
@@ -520,7 +520,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
return (0); /* Standard: return 0 for end-of-string. */
cnt = utf8_count[ch];
- /* Invalide sequence or there are not plenty bytes. */
+ /* Invalid sequence or there are not plenty bytes. */
if (n < (size_t)cnt)
return (-1);
@@ -559,7 +559,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
return (-1);
}
- /* The code point larger than 0x10FFFF is not leagal
+ /* The code point larger than 0x10FFFF is not legal
* Unicode values. */
if (wc > 0x10FFFF)
return (-1);