Remove implicit handle of final \0 in ByteArray

This commit is contained in:
2021-09-28 14:58:41 +02:00
parent 47a38b1ebc
commit dc15fc7197
3 changed files with 4 additions and 4 deletions

View File

@@ -907,7 +907,7 @@ namespace gourou
ByteArray privateLicenseKey = ByteArray::fromBase64(user->getPrivateLicenseKey());
/* In adobekey.py, we get base64 decoded data [26:] */
write(fd, privateLicenseKey.data()+26, privateLicenseKey.length()-1-26);
write(fd, privateLicenseKey.data()+26, privateLicenseKey.length()-26);
close(fd);
}