Skip to content

Commit

Permalink
Merge pull request #74 from ejoerns/v0/topic/print-sigsize
Browse files Browse the repository at this point in the history
bundle: fix format specifier for printing sigsize
  • Loading branch information
jluebbe committed Sep 17, 2016
2 parents e32b3d2 + ac3630b commit 721bf41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ gboolean check_bundle(const gchar *bundlename, gsize *size, gboolean verify, GEr
/* sanity check: signature should be smaller than bundle size */
if (sigsize > (guint64)offset) {
g_set_error(error, R_BUNDLE_ERROR, R_BUNDLE_ERROR_SIGNATURE,
"signature size sanity check failed: %"G_GSIZE_FORMAT" exceeds bundle size", sigsize);
"signature size sanity check failed: %"G_GUINT64_FORMAT" exceeds bundle size", sigsize);
res = FALSE;
goto out;
}
/* sanity check: signature should be smaller than 64kiB */
if (sigsize > 0x4000000) {
g_set_error(error, R_BUNDLE_ERROR, R_BUNDLE_ERROR_SIGNATURE,
"signature size sanity check failed: %"G_GSIZE_FORMAT" exceeds 64KiB", sigsize);
"signature size sanity check failed: %"G_GUINT64_FORMAT" exceeds 64KiB", sigsize);
res = FALSE;
goto out;
}
Expand Down

0 comments on commit 721bf41

Please sign in to comment.