Overview
Comment: | of_asprintf: Don't require set up OFLocalization |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
17098e76eb0be385d663c016bc197855 |
User & Date: | js on 2017-08-11 15:47:31 |
Other Links: | manifest | tags |
Context
2017-08-11
| ||
18:14 | Fix warnings with 32 bit Clang check-in: 2071d164bb user: js tags: trunk | |
15:47 | of_asprintf: Don't require set up OFLocalization check-in: 17098e76eb user: js tags: trunk | |
2017-08-07
| ||
22:55 | OFZIPArchive: Only write after successful init check-in: f31715929b user: js tags: trunk | |
Changes
Modified src/of_asprintf.m from [3e2fecec3f] to [e20ce9de33].
︙ | ︙ | |||
556 557 558 559 560 561 562 | void *pool = objc_autoreleasePoolPush(); char *tmp2; @try { OFMutableString *tmpStr = [OFMutableString stringWithUTF8String: tmp length: tmpLen]; | | > > | | | 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 | void *pool = objc_autoreleasePoolPush(); char *tmp2; @try { OFMutableString *tmpStr = [OFMutableString stringWithUTF8String: tmp length: tmpLen]; OFString *point = [OFLocalization decimalPoint]; if (point != nil) [tmpStr replaceOccurrencesOfString: point withString: @"."]; if ([tmpStr UTF8StringLength] > INT_MAX) return false; tmpLen = (int)[tmpStr UTF8StringLength]; tmp2 = malloc(tmpLen); memcpy(tmp2, [tmpStr UTF8String], tmpLen); } @finally { free(tmp); |
︙ | ︙ |