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/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++; 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);