Dynamically allocate the error message prefix, instead of copying it into a static buffer.

This commit is contained in:
Andrew Wood
2026-04-18 20:30:39 +01:00
parent 0481e99c2f
commit fc364d381f
3 changed files with 23 additions and 26 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ void pv_nanosleep(long long);
/*
* Set the prefix (program name) for any PV error messages.
*/
extern void pv_set_error_prefix(/*@unique@ */ const char *);
extern void pv_set_error_prefix(/*@null@ */ const char *);
/*
* Create a new state structure, and return it, or 0 (NULL) on error.