chiark / gitweb /
vol_id: fix ddf version string
authorKarel Zak <kzak@redhat.com>
Fri, 23 Jan 2009 23:37:22 +0000 (00:37 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 24 Jan 2009 14:20:37 +0000 (15:20 +0100)
commit3e2084614b4d8308d5c0ceb34ec3634eb3353c00
tree9e8a9533371c2ed890d9125685dc5c38f7e7de4d
parent9ad0d7370cffff0bc07e9c561559b4066ae39dc6
vol_id: fix ddf version string

The version string in DDF suberblock does not include the null terminator
and the snprintf() function writes at most "size" bytes *including* the
null byte.

old version:
ID_FS_VERSION=02.00.0
new version:
ID_FS_VERSION=02.00.00

Signed-off-by: Karel Zak <kzak@redhat.com>
extras/volume_id/lib/ddf_raid.c