Fossil SCM
Fix a bug in the check-in comment editor. Ticket [4b40f57449].
Commit
89de100a2de3f6bf0b3dfad52518e82c781a900d
Parent
3c851ca7600b5ca…
1 file changed
+2
-1
+2
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1013,11 +1013,12 @@ | ||
| 1013 | 1013 | manifest_crosslink(nrid, &ctrl); |
| 1014 | 1014 | db_end_transaction(0); |
| 1015 | 1015 | } |
| 1016 | 1016 | cgi_redirectf("vinfo?name=%d", rid); |
| 1017 | 1017 | } |
| 1018 | - blob_init(&comment, zNewComment, -1); | |
| 1018 | + blob_zero(&comment); | |
| 1019 | + blob_append(&comment, zNewComment, -1); | |
| 1019 | 1020 | zUuid[10] = 0; |
| 1020 | 1021 | style_header("Edit Baseline [%s]", zUuid); |
| 1021 | 1022 | @ <p>Make changes to the User and Comment for baseline |
| 1022 | 1023 | @ [<a href="vinfo?name=%d(rid)">%s(zUuid)</a>] then press the |
| 1023 | 1024 | @ "Apply Changes" button.</p> |
| 1024 | 1025 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1013,11 +1013,12 @@ | |
| 1013 | manifest_crosslink(nrid, &ctrl); |
| 1014 | db_end_transaction(0); |
| 1015 | } |
| 1016 | cgi_redirectf("vinfo?name=%d", rid); |
| 1017 | } |
| 1018 | blob_init(&comment, zNewComment, -1); |
| 1019 | zUuid[10] = 0; |
| 1020 | style_header("Edit Baseline [%s]", zUuid); |
| 1021 | @ <p>Make changes to the User and Comment for baseline |
| 1022 | @ [<a href="vinfo?name=%d(rid)">%s(zUuid)</a>] then press the |
| 1023 | @ "Apply Changes" button.</p> |
| 1024 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1013,11 +1013,12 @@ | |
| 1013 | manifest_crosslink(nrid, &ctrl); |
| 1014 | db_end_transaction(0); |
| 1015 | } |
| 1016 | cgi_redirectf("vinfo?name=%d", rid); |
| 1017 | } |
| 1018 | blob_zero(&comment); |
| 1019 | blob_append(&comment, zNewComment, -1); |
| 1020 | zUuid[10] = 0; |
| 1021 | style_header("Edit Baseline [%s]", zUuid); |
| 1022 | @ <p>Make changes to the User and Comment for baseline |
| 1023 | @ [<a href="vinfo?name=%d(rid)">%s(zUuid)</a>] then press the |
| 1024 | @ "Apply Changes" button.</p> |
| 1025 |