test/common: make sure we a valid str in str_erase
In test_str_erase a buffer (
buf) is filled with random data. Later it is duplicated and then erased via
bolt_str_erase. As a check it is compared to
g_assert_cmpstr and asserted that they are not equal.
But if by chance
0, the string is empty and the check will fail, because there is nothing to erase. Fix that by having the random data prefixed with "bolt", so that there is always a valid string to be erased.
Reported-By: Vladimír Čunát firstname.lastname@example.org
Reported-By: Sebastien Bacher email@example.com
Closes #161 (closed)