Correct the process title truncation.

This commit is contained in:
Andrew Wood
2025-12-12 23:12:03 +00:00
parent 579aebf6a7
commit 3af38221ee
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
### UNRELEASED
* *fix:* correct **--extra-display** process title truncation
### 1.10.2 - 22 November 2025
* *i18n:* Finnish translations updated
+1 -1
View File
@@ -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
View File
@@ -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);
}