Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/bf427e3b2acea8f05db9ad79299b1f7d22c54c33
...commit
http://git.netsurf-browser.org/netsurf.git/commit/bf427e3b2acea8f05db9ad79299b1f7d22c54c33
...tree
http://git.netsurf-browser.org/netsurf.git/tree/bf427e3b2acea8f05db9ad79299b1f7d22c54c33
The branch, master has been updated
via bf427e3b2acea8f05db9ad79299b1f7d22c54c33 (commit)
from 7d06021e21784ffec6a8925423b3a790ed16c63f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=bf427e3b2acea8f05db9ad79299b1f7d22c54c33
commit bf427e3b2acea8f05db9ad79299b1f7d22c54c33
Author: Ori Bernstein <[email protected]>
Commit: Michael Drake <[email protected]>
fix nsurl sizeof/offsetof
diff --git a/utils/nsurl/parse.c b/utils/nsurl/parse.c
index 3b8816d..dbf0c6e 100644
--- a/utils/nsurl/parse.c
+++ b/utils/nsurl/parse.c
@@ -1316,7 +1316,7 @@ nserror nsurl_create(const char * const url_s, nsurl
**url)
}
e = nsurl__components_to_string(&c, NSURL_WITH_FRAGMENT,
- sizeof(nsurl), (char **)url, &length);
+ offsetof(nsurl, string), (char **)url, &length);
if (e != NSERROR_OK) {
return e;
}
@@ -1554,7 +1554,7 @@ nserror nsurl_join(const nsurl *base, const char *rel,
nsurl **joined)
}
error = nsurl__components_to_string(&c, NSURL_WITH_FRAGMENT,
- sizeof(nsurl), (char **)joined, &length);
+ offsetof(nsurl, string), (char **)joined, &length);
if (error != NSERROR_OK) {
return error;
}
-----------------------------------------------------------------------
Summary of changes:
utils/nsurl/parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/nsurl/parse.c b/utils/nsurl/parse.c
index 3b8816d..dbf0c6e 100644
--- a/utils/nsurl/parse.c
+++ b/utils/nsurl/parse.c
@@ -1316,7 +1316,7 @@ nserror nsurl_create(const char * const url_s, nsurl
**url)
}
e = nsurl__components_to_string(&c, NSURL_WITH_FRAGMENT,
- sizeof(nsurl), (char **)url, &length);
+ offsetof(nsurl, string), (char **)url, &length);
if (e != NSERROR_OK) {
return e;
}
@@ -1554,7 +1554,7 @@ nserror nsurl_join(const nsurl *base, const char *rel,
nsurl **joined)
}
error = nsurl__components_to_string(&c, NSURL_WITH_FRAGMENT,
- sizeof(nsurl), (char **)joined, &length);
+ offsetof(nsurl, string), (char **)joined, &length);
if (error != NSERROR_OK) {
return error;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org