Small fix to make error messages in encrypt() and decrypt() more consistent.
This commit is contained in:
parent
f18a84b6c9
commit
3901bd6a1d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user