Skip to content

Commit

Permalink
Fix some format specifiers
Browse files Browse the repository at this point in the history
(Followup to DerDakon/oldpatches merge)
  • Loading branch information
AMDmi3 committed May 28, 2016
1 parent c5e9e7a commit fa32a68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ gpointer gps_thread(gpointer data) {
if(vfs_result == GNOME_VFS_OK) {
str[bytes_read] = 0;

printf("msg: %s (%zi)\n", str, strlen(str));
printf("msg: %s (%zu)\n", str, strlen(str));

g_mutex_lock(appdata->gps_state->mutex);

Expand Down
2 changes: 1 addition & 1 deletion src/osm-gps-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ osm_gps_map_blit_tile(OsmGpsMap *map, GdkPixbuf *pixbuf, int offset_x, int offse
#else
#define MSG_RESPONSE_BODY(a) ((a)->response_body->data)
#define MSG_RESPONSE_LEN(a) ((a)->response_body->length)
#define MSG_RESPONSE_LEN_FORMAT "%zu"
#define MSG_RESPONSE_LEN_FORMAT "%"G_GOFFSET_FORMAT
#endif

#ifdef LIBSOUP22
Expand Down
2 changes: 1 addition & 1 deletion src/project.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void project_filesize(project_context_t *context) {
gtk_widget_modify_fg(context->fsize, GTK_STATE_NORMAL, NULL);

if(!context->project->data_dirty)
str = g_strdup_printf(_("%zi bytes present"),
str = g_strdup_printf(_("%"G_GSIZE_FORMAT" bytes present"),
file_length(context->project->path,
context->project->osm));
else
Expand Down

0 comments on commit fa32a68

Please sign in to comment.