lib/canonicalize: fix typo

Addresses: 8b8277b7a8 (commitcomment-31491031)
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-11-29 13:33:02 +01:00
parent df61216c67
commit e11d0b8c88
1 changed files with 1 additions and 1 deletions

View 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);