baseline

yet another open-source distributed versioning control system
Log | Files | Refs

commit 2d5a423ec4e92d499a1266b2c8980fb0bec3d96f
parent a78fc61aec254184b7e3055de6f9247ec06308ae
Author: Mohamed Aslan <maslan@sce.carleton.ca>
Date:   Fri, 27 Jun 2014 15:53:03 -0400

undo last commit

Diffstat:
Mcmd-commit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd-commit.c b/cmd-commit.c @@ -62,7 +62,7 @@ gen_temp_msgfile(const char *path, char **filename) asprintf(&msg_file, "%s/tmp.XXXXXX", path); if ((msgfd = mkstemp(msg_file)) == -1) return EXIT_FAILURE; - if (write(msgfd, msg_head, sizeof(msg_head)) == -1) + if (write(msgfd, msg_head, sizeof(msg_head) - 1) == -1) return EXIT_FAILURE; close(msgfd); *filename = msg_file;