chiark / gitweb /
[PATCH] udev_volume_id: version 39
[elogind.git] / extras / volume_id / volume_id / hpfs.c
index a8daea7..3aa95fa 100644 (file)
@@ -58,7 +58,7 @@ int volume_id_probe_hpfs(struct volume_id *id, __u64 off)
                return -1;
 
        if (memcmp(hs->magic, "\x49\xe8\x95\xf9", 4) == 0) {
-               snprintf(id->type_version, VOLUME_ID_FORMAT_SIZE-1, "%u", hs->version);
+               sprintf(id->type_version, "%u", hs->version);
 
                volume_id_set_usage(id, VOLUME_ID_FILESYSTEM);
                id->type = "hpfs";