projects
/
moonshot-ui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If the server's fingerprint doesn't match the expected fingerprint, warn the user...
[moonshot-ui.git]
/
libmoonshot
/
libmoonshot-common.c
diff --git
a/libmoonshot/libmoonshot-common.c
b/libmoonshot/libmoonshot-common.c
index
bd5f635
..
d40849c
100644
(file)
--- a/
libmoonshot/libmoonshot-common.c
+++ b/
libmoonshot/libmoonshot-common.c
@@
-55,6
+55,7
@@
MoonshotError *moonshot_error_new (MoonshotErrorCode code,
buffer_size = _vscprintf (format, args);
error->message = malloc (buffer_size + 1);
_vsnprintf (error->message, buffer_size, format, args);
+ error->message[buffer_size] = 0;
#else
vasprintf (&error->message, format, args);
#endif