[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] dd: sparse conv flag (fixed)
From: |
Roman Rybalko |
Subject: |
Re: [PATCH] dd: sparse conv flag (fixed) |
Date: |
Thu, 28 Jul 2011 23:11:21 +0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 |
Fixed
while (buf[total_written + seek_size] == 0)
++seek_size;
to
while (total_written + seek_size < size && buf[total_written +
seek_size] == 0)
++seek_size;
Carefully tested, seems work.
--
WBR,
Roman Rybalko
0001-dd-sparse-conv-flag.patch
Description: Text Data