busybox/miscutils
Bartosz Golaszewski 59f8197624 i2cdump: don't use common_bufsiz1
Commit e6a2f4cc changed the way common_bufsiz1 works. Now it needs to
be initialized before using, but i2cdump wasn't updated by said patch.

Since the fact that we're using common_bufsiz1 here isn't obvious (no
G_INIT() macro, no other global variables), drop it and simply
allocate the integer array required for block reads on the stack.

Tested with i2c block read on a Lenovo Thinkpad laptop.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-06-24 03:58:43 +02:00
..
adjtimex.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
bbconfig.c rename archive.h to bb_archive.h. no code changes 2011-09-22 12:45:14 +02:00
beep.c Use bb_error_msg instead of bb_info_msg in all commented-out debug printouts 2016-03-30 16:04:37 +02:00
chat.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
chrt.c chrt: remove warning for _POSIX_PRIORITY_SCHEDULING 2013-07-08 11:20:13 +02:00
Config.src tweak defconfig 2015-10-25 20:36:03 +01:00
conspy.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
crond.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
crontab.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
dc.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
devfsd.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
devmem.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
eject.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
fbsplash.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
fbsplash.cfg fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg 2008-03-26 15:12:11 +00:00
flash_eraseall.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
flash_lock_unlock.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
flashcp.c flashcp: change BUFSIZE to 4k 2014-12-10 13:44:27 +01:00
hdparm.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
i2c_tools.c i2cdump: don't use common_bufsiz1 2016-06-24 03:58:43 +02:00
inotifyd.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
ionice.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
Kbuild.src randomconfig fixes 2016-06-19 18:15:33 +02:00
last_fancy.c libbb: add a function to make a copy of a region of memory 2015-07-19 23:05:20 +02:00
last.c randconfig fix 2015-10-11 16:58:18 +02:00
less.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
makedevs.c makedevs: fix help-text 2011-05-30 23:00:47 +02:00
man.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
microcom.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
mountpoint.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
mt.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
nandwrite.c nandwrite: implement -n (read/write without ecc) 2016-01-02 01:33:01 +01:00
raidautorun.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
readahead.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
rfkill.c rfkill: use new-style config/kbuild/applet 2013-11-20 14:21:29 +01:00
runlevel.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
rx.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
setserial.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
setsid.c setsid: fix broken -c 2016-06-20 23:50:26 +02:00
strings.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
taskset.c taskset: fix non-fancy cpuset printing on big-endian 2016-02-26 14:36:24 +01:00
time.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
timeout.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
ttysize.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
ubi_tools.c whitespace and namespace cleanups 2016-04-03 22:24:51 +02:00
ubirename.c whitespace and namespace cleanups 2016-04-03 22:24:51 +02:00
volname.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
wall.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
watchdog.c CONFIG_PID_FILE_PATH: new configuration option for pidfile paths 2012-12-19 15:53:33 -05:00