1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -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:
Simon Tatham
2019-04-13 19:12:53 +01:00
parent 2692bfe8ee
commit 56198afb5c
4 changed files with 10 additions and 6 deletions

View File

@ -661,7 +661,11 @@ int main(int argc, char **argv)
errors = true;
} else {
--argc;
provide_xrm_string(*++argv);
/* Explicitly pass "plink" in place of appname for
* error reporting purposes. appname will have been
* set by be_foo.c to something more generic, probably
* "PuTTY". */
provide_xrm_string(*++argv, "plink");
}
} else if (!strcmp(p, "-shareexists")) {
just_test_share_exists = true;