diff --git a/common/src/platform/linux/proctitle.c b/common/src/platform/linux/proctitle.c index 9aa27869..3d45db38 100644 --- a/common/src/platform/linux/proctitle.c +++ b/common/src/platform/linux/proctitle.c @@ -124,7 +124,7 @@ void lgSetProcessTitle(const char * title) return; size_t effective = strlen(title); - if (effective > totalSize) + if (effective >= totalSize) effective = totalSize - 1; memcpy(buffer, title, effective);