Changeset: 75eeb9484b7f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/75eeb9484b7f
Modified Files:
        monetdb5/modules/atoms/url.c
Branch: Sep2022
Log Message:

small fix in sys.url_extract_host function


diffs (12 lines):

diff --git a/monetdb5/modules/atoms/url.c b/monetdb5/modules/atoms/url.c
--- a/monetdb5/modules/atoms/url.c
+++ b/monetdb5/modules/atoms/url.c
@@ -948,7 +948,7 @@ BATextractURLHost(bat *res, const bat *b
                                        if (l > 0) {
                                                // if ((msg = 
str_Sub_String(&buf, &buflen, host, 0, l)) != MAL_SUCCEED)
                                                //      break;
-                                               if ((msg = str_buf_copy(&buf, 
&buflen, host, (size_t) l)) != MAL_SUCCEED)
+                                               if ((msg = str_buf_copy(&buf, 
&buflen, host, (size_t) (l + 1))) != MAL_SUCCEED)
                                                        break;
                                                if (bunfastapp_nocheckVAR(bn, 
buf) != GDK_SUCCEED) {
                                                        msg = 
createException(MAL, "baturl.extractURLHost", SQLSTATE(HY013) MAL_MALLOC_FAIL );
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to