Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
feh.8457
feh-fix_pointer_arithmetics.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File feh-fix_pointer_arithmetics.patch of Package feh.8457
--- src/menu.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) Index: feh-2.17.1/src/menu.c =================================================================== --- feh-2.17.1.orig/src/menu.c +++ feh-2.17.1/src/menu.c @@ -24,6 +24,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE */ +#include <stdint.h> + #include "feh.h" #include "thumbnail.h" #include "wallpaper.h" @@ -931,7 +933,8 @@ void feh_menu_init_main(void) void feh_menu_init_common() { - int num_desks, i; + int num_desks; + intptr_t i; char buf[30]; feh_menu *m; @@ -977,7 +980,7 @@ void feh_menu_init_common() m = feh_menu_new(); m->name = estrdup("TILED"); for (i = 0; i < num_desks; i++) { - snprintf(buf, sizeof(buf), "Desktop %d", i + 1); + snprintf(buf, sizeof(buf), "Desktop %zu", i + 1); if (opt.slideshow || opt.multiwindow) feh_menu_add_entry(m, buf, NULL, CB_BG_TILED, i, NULL); @@ -989,7 +992,7 @@ void feh_menu_init_common() m = feh_menu_new(); m->name = estrdup("SCALED"); for (i = 0; i < num_desks; i++) { - snprintf(buf, sizeof(buf), "Desktop %d", i + 1); + snprintf(buf, sizeof(buf), "Desktop %zu", i + 1); if (opt.slideshow || opt.multiwindow) feh_menu_add_entry(m, buf, NULL, CB_BG_SCALED, @@ -1002,7 +1005,7 @@ void feh_menu_init_common() m = feh_menu_new(); m->name = estrdup("CENTERED"); for (i = 0; i < num_desks; i++) { - snprintf(buf, sizeof(buf), "Desktop %d", i + 1); + snprintf(buf, sizeof(buf), "Desktop %zu", i + 1); if (opt.slideshow || opt.multiwindow) feh_menu_add_entry(m, buf, NULL, CB_BG_CENTERED, i, NULL); @@ -1014,7 +1017,7 @@ void feh_menu_init_common() m = feh_menu_new(); m->name = estrdup("FILLED"); for (i = 0; i < num_desks; i++) { - snprintf(buf, sizeof(buf), "Desktop %d", i + 1); + snprintf(buf, sizeof(buf), "Desktop %zu", i + 1); if (opt.slideshow || opt.multiwindow) feh_menu_add_entry(m, buf, NULL, CB_BG_FILLED,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor