Correct the process title truncation.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
### UNRELEASED
|
||||
|
||||
* *fix:* correct **--extra-display** process title truncation
|
||||
|
||||
### 1.10.2 - 22 November 2025
|
||||
|
||||
* *i18n:* Finnish translations updated
|
||||
|
||||
+1
-1
@@ -1339,7 +1339,7 @@ void pv_display(pvprogramstatus_t status, readonly_pvcontrol_t control, pvtransi
|
||||
&& (NULL != extra_display)
|
||||
&& (NULL != extra_display->display_buffer)
|
||||
) {
|
||||
setproctitle("%s", extra_display->display_buffer);
|
||||
setproctitle("%s -- %s", PACKAGE_NAME, extra_display->display_buffer);
|
||||
extra_display->output_produced = true;
|
||||
debug("%s: [%s]", "processtitle display", extra_display->display_buffer);
|
||||
}
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ void setproctitle(const char *format, ...)
|
||||
if (length > space_available - 2)
|
||||
length = space_available - 2;
|
||||
|
||||
(void) pv_snprintf(base_argv[0], space_available, "%s -- %s", PACKAGE_NAME, title);
|
||||
(void) pv_snprintf(base_argv[0], space_available, "%s", title);
|
||||
if (space_available > length)
|
||||
memset(base_argv[0] + length, 0, space_available - length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user