summaryrefslogtreecommitdiff
path: root/tests/sp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sp.c')
-rw-r--r--tests/sp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sp.c b/tests/sp.c
index 369e376..f682885 100644
--- a/tests/sp.c
+++ b/tests/sp.c
@@ -48,14 +48,14 @@ int main()
/* now we should switch over to the dynamic buffer, as we have more
* characters than can fit in any regular pointer type (3 for 32bit, 7
* for 64 bit, 15 for stuff like Cheri), might fail */
- if (sp_append_str(&sp, "4567890ABCDEFG")) {
+ if (sp_append_str(&sp, "4567890ABCDEFGH")) {
fprintf(stderr, "failed appending to string buffer");
sp_destroy(&sp);
return -1;
}
/* same deal, check that we're using the dynamic buffer */
- assert(strcmp(sp.p, "1234567890ABCDEFG") == 0);
+ assert(strcmp(sp.p, "1234567890ABCDEFGH") == 0);
/* test dynamic iteration */
foreach(sp, c, &sp) {