projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
[citadel.git]
/
libcitadel
/
lib
/
tools.c
diff --git
a/libcitadel/lib/tools.c
b/libcitadel/lib/tools.c
index d738451a14234f045e5eaee4fa4870397807152d..f520ee2d96b5365d2876a8385fbd50b6788672cb 100644
(file)
--- a/
libcitadel/lib/tools.c
+++ b/
libcitadel/lib/tools.c
@@
-885,7
+885,10
@@
void generate_uuid(char *buf) {
int rv;
rv = fread(buf, 36, 1, fp);
fclose(fp);
- if (rv == 1) return;
+ if (rv == 1) {
+ buf[36] = 0;
+ return;
+ }
}
}