summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>2006-07-26 13:15:09 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>2006-07-26 13:15:09 +0000
commite6df42eaf361b9878e79ab8964aa26e1ddb95cef (patch)
tree0c13c44c748276371666bce7082452e213834bb0 /clients
parent67eb19beb54d002b8cdd8bf294971b46124c376e (diff)
Allocate the correct amount of memory for command-line messages.
Diffstat (limited to 'clients')
-rw-r--r--clients/zaway/zaway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/zaway/zaway.c b/clients/zaway/zaway.c
index c68c4e9..c8a5f58 100644
--- a/clients/zaway/zaway.c
+++ b/clients/zaway/zaway.c
@@ -165,7 +165,7 @@ int main(argc,argv)
}
if (cmdline_msg) {
- ptr = malloc(strlen(cmdline_msg));
+ ptr = malloc(strlen(cmdline_msg)+1);
if (!ptr) {
com_err(argv[0],ENOMEM,"while getting cmdline message");
exit(1);