chiark / gitweb /
[PATCH] udev_volume_id: version 39
[elogind.git] / extras / volume_id / volume_id / hpfs.c
index a8daea7892568a5501b22d8d0cc9cb78c81da98e..3aa95fa8397da25a32fd4739a6611e879973d4d7 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";