]> git.k1024.org Git - pyxattr.git/commit
Fix potential name truncation in merge_ns()
authorIustin Pop <iustin@k1024.org>
Fri, 1 May 2015 23:25:51 +0000 (01:25 +0200)
committerIustin Pop <iustin@k1024.org>
Fri, 1 May 2015 23:25:51 +0000 (01:25 +0200)
commit6f884e1f0464237646f3bd87917bee90f95b617f
treed83b55b0d7d42632320b5d39e44c0420732ffe91
parenta84861a4aa73275c40ecda1d8b5e0a309aed4368
Fix potential name truncation in merge_ns()

It seems I misread the snprintf man page: a return value of exactly
the buffer size means truncation has occurred, so we need to fix the
operator (`>` → `≥`).

Additionally, improve slightly the error message raised in such a
case; this shouldn't ever happen.
xattr.c