Re: [PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-18 Thread Michael Tokarev
15.10.2024 14:25, Thomas Huth wrote: The linker on OpenBSD complains: ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]): warning: sprintf() is often misused, please use snprintf() Using g_strdup_printf() is certainly better here, so let's switch to that function instead. R

Re: [PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-15 Thread Thomas Huth
On 15/10/2024 16.47, Richard Henderson wrote: On 10/15/24 04:25, Thomas Huth wrote: The linker on OpenBSD complains:   ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]):   warning: sprintf() is often misused, please use snprintf() Using g_strdup_printf() is certainly better her

Re: [PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-15 Thread Richard Henderson
On 10/15/24 04:25, Thomas Huth wrote: The linker on OpenBSD complains: ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]): warning: sprintf() is often misused, please use snprintf() Using g_strdup_printf() is certainly better here, so let's switch to that function instead. S

Re: [PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-15 Thread Alex Bennée
Thomas Huth writes: > The linker on OpenBSD complains: > > ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]): > warning: sprintf() is often misused, please use snprintf() > > Using g_strdup_printf() is certainly better here, so let's switch > to that function instead. > > Signed

Re: [PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-15 Thread Marc-André Lureau
On Tue, Oct 15, 2024 at 3:25 PM Thomas Huth wrote: > > The linker on OpenBSD complains: > > ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]): > warning: sprintf() is often misused, please use snprintf() > > Using g_strdup_printf() is certainly better here, so let's switch > to t

[PATCH v2] ui/console-vc: Silence warning about sprintf() on OpenBSD

2024-10-15 Thread Thomas Huth
The linker on OpenBSD complains: ld: warning: console-vc.c:824 (../src/ui/console-vc.c:824)([...]): warning: sprintf() is often misused, please use snprintf() Using g_strdup_printf() is certainly better here, so let's switch to that function instead. Signed-off-by: Thomas Huth --- v2: Use g_