[librsvg] rsvg_make_valid_utf8(): Take a "gssize len", like glib functions do
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_make_valid_utf8(): Take a "gssize len", like glib functions do
- Date: Tue, 5 Dec 2017 22:19:53 +0000 (UTC)
commit 6226cb05e3ab1ddc4f8eede5449d823faab48bf9
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 5 16:10:01 2017 -0600
rsvg_make_valid_utf8(): Take a "gssize len", like glib functions do
rsvg-text.c | 4 ++--
rsvg-text.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rsvg-text.c b/rsvg-text.c
index 7adba02..3c20e39 100644
--- a/rsvg-text.c
+++ b/rsvg-text.c
@@ -52,11 +52,11 @@ struct _RsvgNodeTref {
};
char *
-rsvg_make_valid_utf8 (const char *str, int len)
+rsvg_make_valid_utf8 (const char *str, gssize len)
{
GString *string;
const char *remainder, *invalid;
- int remaining_bytes, valid_bytes;
+ gssize remaining_bytes, valid_bytes;
string = NULL;
remainder = str;
diff --git a/rsvg-text.h b/rsvg-text.h
index e43b560..d30bac0 100644
--- a/rsvg-text.h
+++ b/rsvg-text.h
@@ -39,7 +39,7 @@ RsvgNode *rsvg_new_tspan (const char *element_name, RsvgNode *parent);
G_GNUC_INTERNAL
RsvgNode *rsvg_new_tref (const char *element_name, RsvgNode *parent);
G_GNUC_INTERNAL
-char *rsvg_make_valid_utf8 (const char *str, int len);
+char *rsvg_make_valid_utf8 (const char *str, gssize len);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]