From 15a936a1b1c2213838936d4533798299e78ed650 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 26 Nov 2023 14:18:09 +0100 Subject: [PATCH] Fix line break --- src/extattrs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extattrs.cpp b/src/extattrs.cpp index 47c76d4..342c7de 100644 --- a/src/extattrs.cpp +++ b/src/extattrs.cpp @@ -141,8 +141,7 @@ bool setAttributeValueQString(const QString &path, const QString &attribute, con namespacedAttr.append(XATTR_NAMESPACE).append(".").append(attribute); int success = setxattr(path.toLatin1().data(), namespacedAttr.toLatin1().data(), - value.toLatin1().data(), value.length() + 1, 0); // - include \0 termination char + value.toLatin1().data(), value.length() + 1, 0); // include \0 termination char // check if we set the attribute value return (success == 0); #endif