diff options
author | khali <khali> | 2008-10-28 10:17:50 +0000 |
---|---|---|
committer | khali <khali> | 2008-10-28 10:17:50 +0000 |
commit | ba71977921f9114a8574c0fb119876ede9d829d6 (patch) | |
tree | 515bd3d469fdb6f47d68577ebb8a187436a789a5 /util.h | |
parent | a5d5a1fd8b639158d21653fb4264c3e6119586d9 (diff) | |
download | dmidecode-ba71977921f9114a8574c0fb119876ede9d829d6.tar.gz |
When dumping the DMI table to a binary file, truncate the file first.
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,4 +26,4 @@ int checksum(const u8 *buf, size_t len); void *mem_chunk(size_t base, size_t len, const char *devmem); -int write_dump(size_t base, size_t len, const void *data, const char *dumpfile); +int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add); |