diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-24 19:56:51 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-24 19:56:51 -0400 |
| commit | 51b01cdd30aafb0846263c60334850e0f82118e6 (patch) | |
| tree | 66ab09364210eeabe5e613aff4e679df47041449 | |
| parent | 97ab5131530148b3ea01716a54e0c39c9f200a84 (diff) | |
| download | stasis-51b01cdd30aafb0846263c60334850e0f82118e6.tar.gz | |
Fix NUL placement in center text
| -rw-r--r-- | src/cli/stasis/stasis_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/stasis/stasis_main.c b/src/cli/stasis/stasis_main.c index 252e67e..c04e88b 100644 --- a/src/cli/stasis/stasis_main.c +++ b/src/cli/stasis/stasis_main.c @@ -522,7 +522,7 @@ static char *center_text(const char *s, const size_t maxwidth) { } result[i++] = 'v'; strncpy(&result[i], s, maxwidth - middle - 1); - result[maxwidth - middle - 1] = '\0'; + result[maxwidth - 1] = '\0'; return result; } |
