Issues with applets/usage_pod.c

Denys Vlasenko vda.linux at googlemail.com
Mon Feb 15 11:36:35 UTC 2021


--- a/applets/usage_pod.c
+++ b/applets/usage_pod.c
@@ -71,7 +71,7 @@ int main(void)
                } else {
                        printf(", ");
                }
-               printf(usage_array[i].aname);
+               printf("%s", usage_array[i].aname);
                col += len2;
        }
        printf("\n\n");

On Sun, Feb 14, 2021 at 7:35 AM c4droid <c4droid at foxmail.com> wrote:
>
> Greetings,
> I'm working on project depend on busybox, when I clone the repository and copy the config to build, I got the compilation error for applets/usage_pod.c. error detail:
> applets/usage_pod.c: In function 'main':
> applets/usage_pod.c:74:3: error: format not a string literal and no format arguments [-Werror=format-security]
>     74 |   printf(usage_array[I].aname);
>          |   ^~~~~~
> Have some fix or workaround can let compilation pass?
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list