Overview
Comment: | OFSystemInfo: Exclude \0 returned by confstr() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f0528dda030aec58ae521908975dd3c5 |
User & Date: | js on 2021-05-13 20:04:29 |
Other Links: | manifest | tags |
Context
2021-05-13
| ||
20:07 | tests: Use +[OFSystem temporaryDirectoryPath] check-in: b30979ffc9 user: js tags: trunk | |
20:04 | OFSystemInfo: Exclude \0 returned by confstr() check-in: f0528dda03 user: js tags: trunk | |
19:56 | Add +[OFSystemInfo temporaryDirectoryPath] check-in: 7227005db8 user: js tags: trunk | |
Changes
Modified src/OFSystemInfo.m from [76082dfedc] to [b33fc4fe1c].
︙ | ︙ | |||
532 533 534 535 536 537 538 | size_t length; if ((length = confstr(_CS_DARWIN_USER_TEMP_DIR, buffer, PATH_MAX)) == 0) return @"/tmp"; return [OFString stringWithCString: buffer encoding: [OFLocale encoding] | | | 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 | size_t length; if ((length = confstr(_CS_DARWIN_USER_TEMP_DIR, buffer, PATH_MAX)) == 0) return @"/tmp"; return [OFString stringWithCString: buffer encoding: [OFLocale encoding] length: length - 1]; # elif defined(OF_WINDOWS) if ([self isWindowsNT]) { wchar_t buffer[PATH_MAX]; if (!GetTempPathW(PATH_MAX, buffer)) return nil; |
︙ | ︙ |