From 21d2fa13b5cca1402c0d8891a9c5909112cce3ea Mon Sep 17 00:00:00 2001 From: Peter Lobsinger Date: Mon, 7 Mar 2011 15:38:40 -0500 Subject: [PATCH] update signature to avoid use of now-removed 'b' type strings are NOT writable. this was broken. use a buffer you've allocated yourself. stop abusing the strings subsystem. --- runtime/parrot/library/pcre.pir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/parrot/library/pcre.pir b/runtime/parrot/library/pcre.pir index 8fad8061c3..3b7a011069 100644 --- a/runtime/parrot/library/pcre.pir +++ b/runtime/parrot/library/pcre.pir @@ -119,7 +119,7 @@ LIB_LOADED: #int pcre_copy_substring(const char *subject, int *ovector, # int stringcount, int stringnumber, char *buffer, # int buffersize); - dlfunc pcre_function, libpcre, 'pcre_copy_substring', 'itpiibi' + dlfunc pcre_function, libpcre, 'pcre_copy_substring', 'itpiipi' set_hll_global ['PCRE'; 'NCI'], 'PCRE_copy_substring', pcre_function # const char *pcre_version(void);