[epiphany] ephy-view-source-handler: Improve string handling warning message



commit f84b5742a4e08e17db15852b1fcec4605fe85193
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Tue Jan 7 13:47:07 2020 +0100

    ephy-view-source-handler: Improve string handling warning message

 embed/ephy-view-source-handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-view-source-handler.c b/embed/ephy-view-source-handler.c
index 937690079..d70cfb688 100644
--- a/embed/ephy-view-source-handler.c
+++ b/embed/ephy-view-source-handler.c
@@ -120,7 +120,7 @@ web_resource_data_cb (WebKitWebResource     *resource,
     return;
   }
 
-  /* Warning: We expect 'data' to be a nul terminated string, but it is not mandatory */
+  /* Warning: data is not a string, so we pass length here because it's not NUL-terminated. */
   escaped_str = g_markup_escape_text ((const char *)data, length);
 
   html = g_strdup_printf ("<head>"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]