From 24a88ec13a0130377473fb912a33641856afef2e Mon Sep 17 00:00:00 2001 From: Keith Bowes Date: Thu, 27 Feb 2020 16:58:36 -0500 Subject: [PATCH] I've learned that atoi() is deprecated I suppose that's what I get for not keeping track of new C standards --- waybox/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waybox/cursor.c b/waybox/cursor.c index 58fe76f..0e8ee5c 100644 --- a/waybox/cursor.c +++ b/waybox/cursor.c @@ -165,7 +165,7 @@ struct wb_cursor *wb_cursor_create(struct wb_server *server) { cursor->server = server; const char *xcursor_size = getenv("XCURSOR_SIZE"); - cursor->xcursor_manager = wlr_xcursor_manager_create(getenv("XCURSOR_THEME"), xcursor_size ? atoi(xcursor_size) : 24); + cursor->xcursor_manager = wlr_xcursor_manager_create(getenv("XCURSOR_THEME"), xcursor_size ? strtoul(xcursor_size, (char **) NULL, 10) : 24); wlr_xcursor_manager_load(cursor->xcursor_manager, 1); cursor->cursor_motion.notify = handle_cursor_motion;