mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Fix mkstemps() extension handling. Sudoedit will now preserve the
extension properly when the system libc lacks mkstemps().
This commit is contained in:
@@ -140,7 +140,7 @@ mktemp_internal(char *path, int slen, int mode)
|
||||
tries *= 2;
|
||||
|
||||
do {
|
||||
for (cp = start; *cp; cp++) {
|
||||
for (cp = start; cp != ep; cp++) {
|
||||
r = get_random() % NUM_CHARS;
|
||||
*cp = tempchars[r];
|
||||
}
|
||||
|
Reference in New Issue
Block a user