92fa558a39565702960b8ff54d3d9b0250e05410 kent Fri Jun 9 20:13:45 2017 -0700 Adding constant for UUID_STRING_SIZE diff --git src/inc/uuid.h src/inc/uuid.h index d03fc92..0078e53 100644 --- src/inc/uuid.h +++ src/inc/uuid.h @@ -1,11 +1,13 @@ /* uuid - stuff to make working with uuid's a little bit easier. These are the things * that look like 08965457-c5aa-43de-894c-cc01483a5691 in ascii, or as 16 unsigned chars * in binary. Uuid stands for universally unique ID, and though they are a bit ugly * and hard to type or even cut an paste, they do make very effective nonredundant IDs. * * If you use this file you need to add -luuid to your link line. */ #include -char *makeUuidString(char buf[37]); +#define UUID_STRING_SIZE 37 + +char *makeUuidString(char buf[UUID_STRING_SIZE]); /* Generate a random uuid and put it in the usual hex-plus-dashes form */