OSDN Git Service

libext2fs: fix sparse param parsing on mac build
authorJin Qian <jinqian@google.com>
Sat, 7 Jan 2017 00:30:34 +0000 (16:30 -0800)
committerJin Qian <jinqian@google.com>
Sun, 8 Jan 2017 00:55:58 +0000 (00:55 +0000)
commit901472babf4ea5e4d2d44aa16834b1c899c8937f
treed493e20d6aa87450df2050e406213190e85fb547
parentda08ba0d8afdc1b2516663197a0a6e52252c9711
libext2fs: fix sparse param parsing on mac build

Flag m is not supported on macos sscanf. Fall back to manually
allocate the string.

Use strict format to skip ":" between params.

Change-Id: Ic4f3747708423d0504ea40fb5cb116068f4a7ab8
lib/ext2fs/sparse_io.c