summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/util.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-05-25 03:35:18 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-05-25 03:35:18 +0200
commita3b836c6c22614d2aa746d89ddfaa6888e47691f (patch)
treeaddf1bdb6d7918839671bae3542c776613281374 /extras/volume_id/lib/util.h
parent52e1af940af52a4f1c2f512eef82249aa081535e (diff)
volume_id: terminate overlong label strings
Diffstat (limited to 'extras/volume_id/lib/util.h')
-rw-r--r--extras/volume_id/lib/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/volume_id/lib/util.h b/extras/volume_id/lib/util.h
index ed868001fa..14a76c8fd2 100644
--- a/extras/volume_id/lib/util.h
+++ b/extras/volume_id/lib/util.h
@@ -80,7 +80,7 @@ enum endian {
};
extern int volume_id_utf8_encoded_valid_unichar(const char *str);
-extern void volume_id_set_unicode16(char *str, size_t len, const uint8_t *buf, enum endian endianess, size_t count);
+extern size_t volume_id_set_unicode16(uint8_t *str, size_t len, const uint8_t *buf, enum endian endianess, size_t count);
extern void volume_id_set_usage(struct volume_id *id, enum volume_id_usage usage_id);
extern void volume_id_set_label_raw(struct volume_id *id, const uint8_t *buf, size_t count);
extern void volume_id_set_label_string(struct volume_id *id, const uint8_t *buf, size_t count);