From cf5bb1eec6144ae08c533d23c1c7167ba1e635e3 Mon Sep 17 00:00:00 2001 From: wbaumann Date: Sat, 5 Apr 2014 20:35:20 +0000 Subject: [PATCH] Use xasprintf --- ChangeLog | 2 ++ src/umount_davfs.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8808e45..869615b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ ChangeLog for davfs2 2014-04-05 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs.c: Allways try 'umount -i'. + * umount_davfs.c: + Use xasprintf. 2014-04-05 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac, src/Makefile.am, defaults.h, diff --git a/src/umount_davfs.c b/src/umount_davfs.c index d998bf0..59649c8 100644 --- a/src/umount_davfs.c +++ b/src/umount_davfs.c @@ -128,9 +128,9 @@ main(int argc, char *argv[]) char *umount_command = NULL; if (mpoint) { - umount_command = ne_concat("umount -i '", mpoint, "'", NULL); + umount_command = xasprintf("umount -i '%s'", mpoint); } else { - umount_command = ne_concat("umount -i '", argv[optind], "'", NULL); + umount_command = xasprintf("umount -i '%s'", argv[optind]); error(0, 0, _("\n" " can't evaluate PID file name;\n"