Skip to content

Commit

Permalink
fix printf problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed Feb 27, 2024
1 parent 72b7054 commit 5eaf2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iptux/RevisePal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ void RevisePal::ApplyReviseData() {
g_free(file);
g_free(pal->iconfile);
snprintf(path, MAX_PATHLEN, "%s" ICON_PATH "/%" PRIx32,
g_get_user_cache_dir(), pal->ipv4);
pal->iconfile = g_strdup_printf("%" PRIx32, pal->ipv4);
g_get_user_cache_dir(), ntohl(pal->ipv4.s_addr));
pal->iconfile = g_strdup_printf("%" PRIx32, ntohl(pal->ipv4.s_addr));
gtk_tree_model_get(model, &iter, 0, &pixbuf, -1);
gdk_pixbuf_save(pixbuf, path, "png", NULL, NULL);
gtk_icon_theme_add_builtin_icon(pal->iconfile, MAX_ICONSIZE, pixbuf);
Expand Down

0 comments on commit 5eaf2ac

Please sign in to comment.