busybox: Fix snprintf arguments in lock
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 31 Mar 2022 16:43:09 +0000 (18:43 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 31 Mar 2022 16:46:53 +0000 (18:46 +0200)
commitd80336e1a970b088c235dcf2773052537e6f5d72
tree8b34a0494e2339ef748e5d6e9f79ba356d026181
parentc6eb63d48f942f1e54737ed182776cf9a08de542
busybox: Fix snprintf arguments in lock

The first argument for snprintf is the buffer and the 2. one is the
size. Fix the order. This broke the lock application.

Fixes: 34567750db2c ("busybox: fix busybox lock applet pidstr buffer overflow")
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/utils/busybox/patches/220-add_lock_util.patch