From 32ea06ea24cde1d734c7c3b09ebf649c364950ab Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Thu, 24 Jan 2019 18:46:46 +0100 Subject: [PATCH 1/2] Remove newline in window title --- README.md | 4 ++++ version.h | 2 +- xwin.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f24cbc1..0522947 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ This release was tested against MarIuX. ## Revision History +### Version 3.0p11 - Jan 23 2019 +- remove newline in window title +- Niclas Hofmann, `niclas@molgen.mpg.de` + ### Version 3.0p10 - Jan 23 2019 - fix integer overflow - Niclas Hofmann, `niclas@molgen.mpg.de` diff --git a/version.h b/version.h index 564ad8e..41d6980 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -#define XDU_VERSION "3.0p10" +#define XDU_VERSION "3.0p11" diff --git a/xwin.c b/xwin.c index 0e87038..e10aa43 100644 --- a/xwin.c +++ b/xwin.c @@ -415,7 +415,7 @@ int xsetup(int* argcp, char** argv) * Create the top level Widget */ n = 0; - XtSetArg(args[n], XtNtitle, "XDU Disk Usage Display ('h' for help)\n"); + XtSetArg(args[n], XtNtitle, "XDU Disk Usage Display ('h' for help)"); n++; toplevel = XtAppInitialize(&app_con, "XDu", options, XtNumber(options), argcp, argv, fallback_resources, args, n); From ace9d9651cefd622e35d49eebe0dafefc8816799 Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Thu, 7 Feb 2019 15:33:33 +0100 Subject: [PATCH 2/2] Fix issue #19 --- xdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdu.c b/xdu.c index 37b0a02..4ab76a7 100644 --- a/xdu.c +++ b/xdu.c @@ -145,7 +145,7 @@ makenode(char* name, long long size) struct node* np; np = (struct node*)calloc(1, sizeof(struct node)); - np->name = strdup(name); + np->name = name; np->size = size; np->num = nnodes; nnodes++;