diff options
| author | Keenan Gugeler <me@kgugeler.ca> | 2025-03-20 21:40:38 -0400 |
|---|---|---|
| committer | Alexander Orzechowski <alex@ozal.ski> | 2025-03-21 00:43:42 -0400 |
| commit | 66b6c7e5802dfe76fbba5daa58b3d517e477bbd0 (patch) | |
| tree | 0168d97b14b185cdb8f98ed2d01404946cf675ad | |
| parent | 9bdf4b28496462df1cc4943ee5a0e9b5df4fe312 (diff) | |
main: null-terminate initial password buffer
Fixes #403.
| -rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1155,6 +1155,7 @@ int main(int argc, char **argv) { if (!state.password.buffer) { return EXIT_FAILURE; } + state.password.buffer[0] = 0; if (pipe(sigusr_fds) != 0) { swaylock_log(LOG_ERROR, "Failed to pipe"); |
