Commit 16c3451f authored by Robert Ricci's avatar Robert Ricci

Bug fix: use strncpy instead of strcpy in checkpass

parent 83ea592e
...@@ -15,7 +15,7 @@ int main(int ARGC, char* ARGV[]) { ...@@ -15,7 +15,7 @@ int main(int ARGC, char* ARGV[]) {
return 0; return 0;
} }
strcpy(passwd,ARGV[1]); strncpy(passwd,ARGV[1],255);
sprintf(gecos,"%s:%s",ARGV[2],ARGV[3]); sprintf(gecos,"%s:%s",ARGV[2],ARGV[3]);
retval = (char *) FascistCheck(passwd,path,gecos); retval = (char *) FascistCheck(passwd,path,gecos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment