diff --git a/.pick_status.json b/.pick_status.json index a0ce6c5761c..f0c939f72f0 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -844,7 +844,7 @@ "description": "util/u_printf: Fix const correctness in util_printf_next_spec_pos", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "6d263ff5a3ec3352bd5e0b1750d38b173d50a1dc", "notes": null diff --git a/src/util/u_printf.c b/src/util/u_printf.c index 67ff4831c64..fb5fd7dc524 100644 --- a/src/util/u_printf.c +++ b/src/util/u_printf.c @@ -72,7 +72,7 @@ size_t util_printf_next_spec_pos(const char *str, size_t pos) continue; } - char *spec_pos = strpbrk(str_found, "cdieEfFgGaAosuxXp%"); + const char *spec_pos = strpbrk(str_found, "cdieEfFgGaAosuxXp%"); if (spec_pos == NULL) { return -1; } else if (*spec_pos == '%') {