diff options
author | Nathan Scott <nathans@redhat.com> | 2020-12-07 11:41:22 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-12-07 11:41:22 +1100 |
commit | b92cfa7d7ac09b4e8a3c377496edd49228221f72 (patch) | |
tree | aefa244b8140e21e2d02018e57c7b9fa0c7d23ec /linux/LinuxProcess.c | |
parent | 57d9ecc5519a44d4d08f1739ab4b741ccfc2d35a (diff) | |
parent | ad764ff972082608604634c84e5427e7bfdcda1a (diff) |
Merge branch 'conversion' of https://github.com/cgzones/htop into cgzones-conversion
Diffstat (limited to 'linux/LinuxProcess.c')
-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) { |