const poisoning.

This commit is contained in:
mycroft 1998-07-27 01:07:01 +00:00
parent dfeb862ca8
commit c77b5a980c
3 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: salloc.c,v 1.3 1997/06/17 18:56:32 christos Exp $ */
/* $NetBSD: salloc.c,v 1.4 1998/07/27 01:07:01 mycroft Exp $ */
/*
* Copyright (c) 1991 Carnegie Mellon University
@ -40,7 +40,7 @@
char *salloc(p)
char *p;
const char *p;
{
register char *q;
register int l;

View File

@ -1,4 +1,4 @@
/* $NetBSD: supcmain.c,v 1.9 1997/11/13 01:05:30 thorpej Exp $ */
/* $NetBSD: supcmain.c,v 1.10 1998/07/27 01:07:01 mycroft Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@ -573,6 +573,7 @@ int argc;
char **argv;
{
char buf[STRINGLENGTH],*p;
const char *u;
char username[STRINGLENGTH];
register char *supfname,*arg;
register COLLECTION *c,*lastC;
@ -635,9 +636,9 @@ char **argv;
--argc;
argv++;
}
if ((p = (char *)getlogin()) ||
((pw = getpwuid ((int)getuid())) && (p = pw->pw_name)))
(void) strcpy (username,p);
if ((u = getlogin()) ||
((pw = getpwuid ((int)getuid())) && (u = pw->pw_name)))
(void) strcpy (username, p);
else
*username = '\0';
if (*supfname) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: supextern.h,v 1.7 1998/07/26 15:52:46 mycroft Exp $ */
/* $NetBSD: supextern.h,v 1.8 1998/07/27 01:07:01 mycroft Exp $ */
struct stat;
@ -63,7 +63,7 @@ int runio __P((char *const[], const char *, const char *, const char *));
int runiofd __P((char *const[], const int, const int, const int));
/* salloc.c */
char *salloc __P((char *));
char *salloc __P((const char *));
/* scan.c */
int getrelease __P((char *));