FS-10043: [libks] ks_pool_resize error #resolve

This commit is contained in:
Anthony Minessale committed 2017-02-14 20:48:54 -06:00
1 parent e8bd2d6f98
commit b79469b413
2 files changed
+14 -6

No files matched your search

+7 -1
View File
@@ -166,10 +166,16 @@ int main(int argc, char **argv)
printf("RESIZE:\n");
ks_snprintf(str, bytes, "%s", "ABCDEFGHIJKLM");
printf("1 STR [%s]\n", str);
bytes *= 2;
str = ks_pool_resize(pool, str, bytes);
printf("2 STR [%s]\n", str);
ok(!strcmp(str, "ABCDEFGHIJKLM"));
ok(str != NULL);
if (!str) {
fprintf(stderr, "RESIZE ERR: [FAILED]\n");
exit(255);