missing format string in applets/usage_pod.c

Baruch Siach baruch at tkos.co.il
Thu Aug 14 12:52:17 UTC 2014


Hi Markus,

On Thu, Aug 14, 2014 at 02:36:18PM +0200, waldeck at gmx.de wrote:
> depending on the compilation options a build could fail here:
> 
> --- applets/usage_pod.c.orig    2014-08-14 08:27:47.021201252 -0400
> +++ applets/usage_pod.c 2014-08-14 08:16:20.685224466 -0400
> @@ -71,7 +71,7 @@
>                 } else {
>                         printf(", ");
>                 }
> -               printf(usage_array[i].aname);
> +               printf("%s", usage_array[i].aname);

I guess puts() would make code size smaller (didn't test).

baruch

>                 col += len2;
>         }
>         printf("\n\n");

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the busybox mailing list