X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.c;h=25e2cfd54872d2b1e232b8673cf8075fb6465bf4;hb=687c1acdbeecd7d0d7fdc4143d444e8b1563b532;hp=7b677225b94b218eab09a096d2b0d6c1da23f82e;hpb=417bac514fb3de900cb12689d8668d4d30a82e3f;p=pspp-builds.git diff --git a/src/libpspp/str.c b/src/libpspp/str.c index 7b677225..25e2cfd5 100644 --- a/src/libpspp/str.c +++ b/src/libpspp/str.c @@ -341,6 +341,12 @@ ss_alloc_uninit (struct substring *new, size_t cnt) new->length = cnt; } +void +ss_realloc (struct substring *ss, size_t size) +{ + ss->string = xrealloc (ss->string, size); +} + /* Makes a pool_alloc_unaligned()'d copy of the contents of OLD in POOL, and stores it in NEW. */ void