about summary refs log tree commit diff
path: root/inet/ruserpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/ruserpass.c')
-rw-r--r--inet/ruserpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/ruserpass.c b/inet/ruserpass.c
index a0a4b97bdb..421bfc5e2d 100644
--- a/inet/ruserpass.c
+++ b/inet/ruserpass.c
@@ -63,7 +63,7 @@ static	FILE *cfile;
 static char tokval[100];
 
 static struct toktab {
-	char *tokstr;
+	const char *tokstr;
 	int tval;
 } toktab[]= {
 	{ "default",	DEFAULT },
@@ -98,7 +98,7 @@ ruserpass(host, aname, apass)
 
 	buf = alloca (strlen (hdir) + 8);
 
-	(void) sprintf(buf, "%s/.netrc", hdir);
+	__stpcpy (__stpcpy (buf, hdir), "/.netrc");
 	cfile = fopen(buf, "r");
 	if (cfile == NULL) {
 		if (errno != ENOENT)