readline and completion fixes

This commit is contained in:
Chet Ramey
2023-04-20 11:27:36 -04:00
parent a46164736e
commit d052bd6fd9
19 changed files with 8015 additions and 7681 deletions
+3 -3
View File
@@ -292,7 +292,7 @@ com_list (arg)
if (!arg)
arg = "";
sprintf (syscom, "ls -FClg %s", arg);
snprintf (syscom, sizeof (syscom), "ls -FClg %s", arg);
return (system (syscom));
}
@@ -305,9 +305,9 @@ com_view (arg)
#if defined (__MSDOS__)
/* more.com doesn't grok slashes in pathnames */
sprintf (syscom, "less %s", arg);
snprintf (syscom, sizeof (syscom), "less %s", arg);
#else
sprintf (syscom, "more %s", arg);
snprintf (syscom, sizeof (syscom), "more %s", arg);
#endif
return (system (syscom));
}