summaryrefslogtreecommitdiff
path: root/libs/canvas/stateful_image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/canvas/stateful_image.cc')
-rw-r--r--libs/canvas/stateful_image.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/stateful_image.cc b/libs/canvas/stateful_image.cc
index b62da9cc8c..f5cc76dd03 100644
--- a/libs/canvas/stateful_image.cc
+++ b/libs/canvas/stateful_image.cc
@@ -101,7 +101,7 @@ StatefulImage::load_states (const XMLNode& node)
error << _("no ID for state") << endmsg;
continue;
}
- sscanf (prop->value().c_str(), "%zd", &id);
+ sscanf (prop->value().c_str(), "%" G_GSIZE_FORMAT, &id);
if ((prop = (*i)->property ("image")) == 0) {
error << _("no image for state") << endmsg;