diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/viewer-render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/viewer-render.c b/utils/viewer-render.c index 3217d80f..0aee39a6 100644 --- a/utils/viewer-render.c +++ b/utils/viewer-render.c @@ -107,14 +107,14 @@ make_layout(PangoContext *context, if (opt_serialized) { - char *text; + char *data; gsize len; GBytes *bytes; GError *error = NULL; - if (!g_file_get_contents (file_arg, &text, &len, &error)) + if (!g_file_get_contents (file_arg, &data, &len, &error)) fail ("%s\n", error->message); - bytes = g_bytes_new_take (text, size); + bytes = g_bytes_new_take (data, len); layout = pango_layout_deserialize (context, bytes, PANGO_LAYOUT_DESERIALIZE_CONTEXT, &error); if (!layout) fail ("%s\n", error->message); |