Closed chelma-amzn closed 4 years ago
Err, do you want this to be done in every place we have a non-null-terminated string? Because there's more than just this one. The real problem here is that we're getting a wacky string from that C_Decrypt function - we should be fixing that. However, as I understand it, we can't, which puts us in our current situation.
Is there a C-savy solution here that isn't just manually adding a null to the end of every string we get from that function?
Issue #, if available: N/A
Description of changes: Updated a print statement to have a bounded number of bytes
Tested by running it on a local test instance:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.