summaryrefslogtreecommitdiff
path: root/usr.sbin/fdformat
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commit1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch)
treea816cae9543dbb9277a62d68a91416fb2fb33da3 /usr.sbin/fdformat
parent2961fc5ac412eec93a03d4badbbf4e01918d864a (diff)
Notes
Diffstat (limited to 'usr.sbin/fdformat')
-rw-r--r--usr.sbin/fdformat/fdformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index 53db6684ea80..3d6b998ed587 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -43,6 +43,7 @@
#include <ctype.h>
#include <err.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
@@ -130,7 +131,7 @@ makename(const char *arg, const char *suffix)
return arg;
if(*arg == '/') /* do not convert absolute pathnames */
return arg;
- strcpy(namebuff, "/dev/");
+ strcpy(namebuff, _PATH_DEV);
strncat(namebuff, arg, 3);
strcat(namebuff, suffix);
return namebuff;