Use xasprintf

This commit is contained in:
wbaumann
2014-04-05 20:35:20 +00:00
parent 9a3e7724be
commit cf5bb1eec6
2 changed files with 4 additions and 2 deletions

View File

@ -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"