netsurf: branch master updated. release/3.5-227-g7417a21

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Sun Jul 24 19:48:53 BST 2016


Gitweb links:

...log http://git.netsurf-browser.org/netsurf.git/shortlog/7417a21bb1f0e8e00958319f60d8c12a9502a353
...commit http://git.netsurf-browser.org/netsurf.git/commit/7417a21bb1f0e8e00958319f60d8c12a9502a353
...tree http://git.netsurf-browser.org/netsurf.git/tree/7417a21bb1f0e8e00958319f60d8c12a9502a353

The branch, master has been updated
       via  7417a21bb1f0e8e00958319f60d8c12a9502a353 (commit)
      from  e88d82f87f8dda23fa87cf730abebff5078ee629 (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=7417a21bb1f0e8e00958319f60d8c12a9502a353
commit 7417a21bb1f0e8e00958319f60d8c12a9502a353
Author: Michael Drake <tlsa at netsurf-browser.org>
Commit: Michael Drake <tlsa at netsurf-browser.org>

    Improve comments.

diff --git a/utils/url.c b/utils/url.c
index 50059a1..d1e9ce2 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -97,7 +97,7 @@ nserror url_unescape(const char *str, size_t length,
 	new_len = res_pos - result;
 
 	if (new_len != length) {
-		/* Shrink wrap the allocaiton around the string */
+		/* Shrink wrap the allocation around the string */
 		char *tmp = realloc(result, new_len + 1);
 		if (tmp != NULL) {
 			result = tmp;
diff --git a/utils/url.h b/utils/url.h
index 07ad1a7..5d8d154 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -48,9 +48,10 @@ nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus,
  * \param[in]  str         String to unescape.
  * \param[in]  length      Length of string or 0 to use strlen.
  * \param[out] length_out  Iff non-NULL, value updated to length of returned
- *                         result_out string.
+ *                         result_out string (excluding trailing '\0'`).
  * \param[out] result_out  Returns unescaped string, owned by caller.
  *                         Must be freed with free().
+ *                         Returned string has trailing '\0'.
  * \return NSERROR_OK on success
  */
 nserror url_unescape(const char *str, size_t length,


-----------------------------------------------------------------------

Summary of changes:
 utils/url.c |    2 +-
 utils/url.h |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/utils/url.c b/utils/url.c
index 50059a1..d1e9ce2 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -97,7 +97,7 @@ nserror url_unescape(const char *str, size_t length,
 	new_len = res_pos - result;
 
 	if (new_len != length) {
-		/* Shrink wrap the allocaiton around the string */
+		/* Shrink wrap the allocation around the string */
 		char *tmp = realloc(result, new_len + 1);
 		if (tmp != NULL) {
 			result = tmp;
diff --git a/utils/url.h b/utils/url.h
index 07ad1a7..5d8d154 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -48,9 +48,10 @@ nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus,
  * \param[in]  str         String to unescape.
  * \param[in]  length      Length of string or 0 to use strlen.
  * \param[out] length_out  Iff non-NULL, value updated to length of returned
- *                         result_out string.
+ *                         result_out string (excluding trailing '\0'`).
  * \param[out] result_out  Returns unescaped string, owned by caller.
  *                         Must be freed with free().
+ *                         Returned string has trailing '\0'.
  * \return NSERROR_OK on success
  */
 nserror url_unescape(const char *str, size_t length,


-- 
NetSurf Browser



More information about the netsurf-commits mailing list