diff options
author | Duncan Sands <baldrick@free.fr> | 2005-09-09 12:38:58 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-09-09 12:38:58 +0200 |
commit | 609435bad66d5b33db367c341ab528239044d346 (patch) | |
tree | fbfdf2d8e3a115f1cba929c6436b4e1e0ccc7534 /extras/firmware | |
parent | f432183eb8cfdd21a4445c77273d6aa4f2d1c5dd (diff) |
firmware_helper: fix write count
Diffstat (limited to 'extras/firmware')
-rw-r--r-- | extras/firmware/firmware_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/firmware/firmware_helper.c b/extras/firmware/firmware_helper.c index 7b7a307298..45815137ac 100644 --- a/extras/firmware/firmware_helper.c +++ b/extras/firmware/firmware_helper.c @@ -118,9 +118,9 @@ int main(int argc, char **argv) { count = 0; while (count < fw_buffer_size) { - int c; + ssize_t c; - c = write(fw_fd, fw_buffer+count, fw_buffer_size); + c = write(fw_fd, fw_buffer+count, fw_buffer_size-count); if (c <= 0) { rc = errno; close(fw_fd); |