1
0
Fork 0

Small fix to make error messages in encrypt() and decrypt() more consistent.

This commit is contained in:
LoRd_MuldeR 2022-05-10 20:36:07 +02:00
parent f18a84b6c9
commit 3901bd6a1d
Signed by: mulder
GPG Key ID: 2B5913365F57E03F
1 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ int decrypt(const char *const passphrase, const CHR *const input_path, const CHR
blake2s_update(&blake2s_state, buffer, count);
if (fwrite(buffer, sizeof(uint8_t), count, file_out) < count)
{
FPUTS(T("failed!\n\nI/O error: Failed to write decrypted data!\n\n"), stderr);
FPUTS(T("\n\nI/O error: Failed to write decrypted data!\n\n"), stderr);
goto clean_up;
}
}
@ -396,7 +396,7 @@ int decrypt(const char *const passphrase, const CHR *const input_path, const CHR
const size_t count = sizeof(uint64_t) - padding;
if (fwrite(buffer, sizeof(uint8_t), count, file_out) < count)
{
FPUTS(T("failed!\n\nI/O error: Failed to write decrypted data!\n\n"), stderr);
FPUTS(T("\n\nI/O error: Failed to write decrypted data!\n\n"), stderr);
goto clean_up;
}
blake2s_update(&blake2s_state, buffer, count);