summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2011-01-18 16:29:38 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2011-01-18 16:29:38 +0000
commit64e2dc73c0d4aac711a7755a1225586da3f9f0f9 (patch)
treeb4b1f868b9e4fe4f9044340e816822bf86521aef /usr.bin/mg
parent6d27da11c3e1d1bec8dda038f32ab18544b44742 (diff)
augbname immediately does a basename. No need to do it in the
caller, too. ok lum@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c
index be98250def5..550380cb6ad 100644
--- a/usr.bin/mg/file.c
+++ b/usr.bin/mg/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.72 2010/06/26 16:18:44 kjell Exp $ */
+/* $OpenBSD: file.c,v 1.73 2011/01/18 16:29:37 kjell Exp $ */
/* This file is in the public domain. */
@@ -516,7 +516,7 @@ filewrite(int f, int n)
(void)strlcpy(curbp->b_fname, adjfname, sizeof(curbp->b_fname));
if (getbufcwd(curbp->b_cwd, sizeof(curbp->b_cwd)) != TRUE)
(void)strlcpy(curbp->b_cwd, "/", sizeof(curbp->b_cwd));
- if (augbname(bn, basename(curbp->b_fname), sizeof(bn))
+ if (augbname(bn, curbp->b_fname, sizeof(bn))
== FALSE)
return (FALSE);
free(curbp->b_bname);