2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Fix mkstemps() extension handling. Sudoedit will now preserve the

extension properly when the system libc lacks mkstemps().
This commit is contained in:
Todd C. Miller
2015-02-18 06:24:31 -07:00
parent 166db8eeb4
commit 1ae2e55141

View File

@@ -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];
}