[PR #3215] html: make sure we allocate enough space for the \0, always close #25286

Open
opened 2026-01-31 09:08:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3215

State: closed
Merged: Yes


conhost has been leaving the clipboard open for all HTML copies because
StringCchCopyA needs an extra byte for the null terminator and we
haven't been giving it one. We should also make sure that we always
close the clipboard (always).

PR Checklist

  • Closes an untracked bug that was driving me crazy
  • CLA
  • Tested
  • Requires documentation to be updated
  • Core

Validation Steps

Went mad on the clipboard.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3215 **State:** closed **Merged:** Yes --- conhost has been leaving the clipboard open for all HTML copies because StringCchCopyA needs an extra byte for the null terminator and we haven't been giving it one. We should also make sure that we always close the clipboard (always). ## PR Checklist * [x] Closes an untracked bug that was driving me crazy * [x] CLA * [x] Tested * [ ] Requires documentation to be updated * [x] Core ## Validation Steps Went mad on the clipboard.
claunia added the pull-request label 2026-01-31 09:08:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25286