]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/canonicalize: fix typo
authorKarel Zak <kzak@redhat.com>
Thu, 29 Nov 2018 12:33:02 +0000 (13:33 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Nov 2018 09:25:04 +0000 (10:25 +0100)
Addresses: https://github.com/karelzak/util-linux/commit/8b8277b7a812c04f2288460f3a8d23cdd53ff66d#commitcomment-31491031
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/canonicalize.c

index e85e0357cd517b35dfb2a16589ef7766517b5e47..fe104953deb5b2062a43ff529056edfbc655d828 100644 (file)
@@ -188,7 +188,7 @@ char *canonicalize_path_restricted(const char *path)
 
                len = canonical ? strlen(canonical) : errno ? -errno : -EINVAL;
 
-               /* send lenght or errno */
+               /* send length or errno */
                write_all(pipes[1], (char *) &len, sizeof(len));
                if (canonical)
                        write_all(pipes[1], canonical, len);