X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fgtkmain.c;h=c681b93d825d174e726a6ead9e679e0001f0ca0b;hb=095072fa46b2d7b8beafaddb2f873d2f500a1e10;hp=a7b4a4e918681002b50771dd4423a4c93a6ccd84;hpb=e22a72c66a2d876f2ebe4bd6384b246af92cda4d;p=PuTTY.git diff --git a/unix/gtkmain.c b/unix/gtkmain.c index a7b4a4e9..c681b93d 100644 --- a/unix/gtkmain.c +++ b/unix/gtkmain.c @@ -287,10 +287,13 @@ static void help(FILE *fp) { } static void version(FILE *fp) { - if(fprintf(fp, "%s: %s\n", appname, ver) < 0 || fflush(fp) < 0) { + char *buildinfo_text = buildinfo("\n"); + if(fprintf(fp, "%s: %s\n%s\n", appname, ver, buildinfo_text) < 0 || + fflush(fp) < 0) { perror("output error"); exit(1); } + sfree(buildinfo_text); } static struct gui_data *the_inst;