Overview
Comment: | Fix missing terminating char and glibc bug. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1c2e0d471185f8d8e65c2f825044f980 |
User & Date: | js on 2008-09-14 17:59:43 |
Other Links: | manifest | tags |
Context
2008-09-14
| ||
18:17 | Fix append for OFWideString. check-in: bcdf93590c user: js tags: trunk | |
17:59 | Fix missing terminating char and glibc bug. check-in: 1c2e0d4711 user: js tags: trunk | |
17:50 | D'oh, wrong variable(s). check-in: 08e3f30363 user: js tags: trunk | |
Changes
Modified src/OFString.m from [52bd147dc6] to [1c1ae2a28e].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | - + - + | { if ((self = [super init])) { if (str == NULL) { length = 0; string = NULL; } else { length = strlen(str); |
︙ | |||
61 62 63 64 65 66 67 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | - + - + | length = 0; string = NULL; return self; } newlen = strlen(str); |
︙ | |||
95 96 97 98 99 100 101 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - - - + - + | newlen = length + strlength; /* FIXME: Add error handling */ if ((newstr = [self resizeMem: string toSize: newlen + 1]) == NULL) return nil; |
Modified src/OFWideString.m from [3d87632f9d] to [9ef8d3d479].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - - + + - + | { if ((self = [super init])) { if (wstr == NULL) { length = 0; wstring = NULL; } else { length = wcslen(wstr); |
︙ | |||
63 64 65 66 67 68 69 | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + - + | length = 0; wstring = NULL; return self; } newlen = wcslen(wstr); |
︙ | |||
94 95 96 97 98 99 100 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - + + - - - - + + - + | return [self setTo: wstr]; strlength = wcslen(wstr); newlen = length + strlength; /* FIXME: Add error handling */ if ((newstr = [self resizeMem: wstring |
Modified tests/OFWideString/OFWideString.m from [b584f40ba9] to [aeb6f6f145].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + - + - + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ |