sd-id128: make size constraints a bit more obvious
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Sep 2015 23:22:10 +0000 (01:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 14:30:32 +0000 (16:30 +0200)
src/libsystemd/sd-id128/sd-id128.c

index 46f2181..eb539ad 100644 (file)
@@ -28,7 +28,7 @@
 #include "sd-id128.h"
 #include "random-util.h"
 
-_public_ char *sd_id128_to_string(sd_id128_t id, char s[33]) {
+_public_ char *sd_id128_to_string(sd_id128_t id, char s[SD_ID128_STRING_MAX]) {
         unsigned n;
 
         assert_return(s, NULL);