mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-13 00:57:33 -05:00
provide_xrm_string: report a more sensible program name.
It was always issuing an error message beginning "pterm:", even when the application was GTK PuTTY or Unix Plink.
This commit is contained in:
@ -301,7 +301,7 @@ static int keycmp(void *av, void *bv)
|
||||
return strcmp(a->key, b->key);
|
||||
}
|
||||
|
||||
void provide_xrm_string(const char *string)
|
||||
void provide_xrm_string(const char *string, const char *progname)
|
||||
{
|
||||
const char *p, *q;
|
||||
char *key;
|
||||
@ -309,8 +309,8 @@ void provide_xrm_string(const char *string)
|
||||
|
||||
p = q = strchr(string, ':');
|
||||
if (!q) {
|
||||
fprintf(stderr, "pterm: expected a colon in resource string"
|
||||
" \"%s\"\n", string);
|
||||
fprintf(stderr, "%s: expected a colon in resource string"
|
||||
" \"%s\"\n", progname, string);
|
||||
return;
|
||||
}
|
||||
q++;
|
||||
|
Reference in New Issue
Block a user