This fixed "directive argument is null" warnings found by gcc
-Wformat-overflow.
if ((pp = getpwuid (getuid())) != NULL)
myname = pp->pw_name;
}
if ((pp = getpwuid (getuid())) != NULL)
myname = pp->pw_name;
}
- printf("Name (%s:%s): ", host, myname);
+ printf("Name (%s:%s): ", host ? host : "", myname);
if (fgets(tmp, sizeof tmp, stdin) == NULL) {
advise ("tmp", "fgets");
if (fgets(tmp, sizeof tmp, stdin) == NULL) {
advise ("tmp", "fgets");