Commit Diff


commit - 4d648b92ac1ac5f952a42f29052c56e8d32547a3
commit + 40831471082f880a26b73987b595a52dc1c93794
blob - d04cf5a35d684cf2759fc02be9b1dc9887309ebb
blob + 670e15b4f8e9326fc92edea6272e06bd3e072a60
--- lib/object_create.c
+++ lib/object_create.c
@@ -748,10 +748,7 @@ got_object_tag_create(struct got_object_id **id,
 		err = buf_load_fd(&buf, out_fd);
 		if (err)
 			goto done;
-		sig_len = buf_len(buf) + 1;
-		err = buf_putc(buf, '\0');
-		if (err)
-			goto done;
+		sig_len = buf_len(buf);
 		if (close(out_fd) == -1) {
 			err = got_error_from_errno("close");
 			goto done;