diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-24 18:37:13 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-12-06 16:03:44 +0100 |
commit | 77ec86aff4314afd893baed0d16d7bd52c387fd4 (patch) | |
tree | 64a92b2b520192d00de88cea6b0195a32530f968 /linux | |
parent | e1ce141bc3123c1dea7eb2ef908c8ebce945c72a (diff) |
Use size_t as type for buffer length in Process
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LinuxProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index f51cf1e3..8298000a 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -618,7 +618,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces bool coloring = this->settings->highlightMegabytes; char buffer[256]; buffer[255] = '\0'; int attr = CRT_colors[DEFAULT_COLOR]; - int n = sizeof(buffer) - 1; + size_t n = sizeof(buffer) - 1; switch ((int)field) { case TTY_NR: { if (lp->ttyDevice) { |