diff options
| author | 2009-04-12 16:12:51 +0200 | |
|---|---|---|
| committer | 2009-04-12 16:12:51 +0200 | |
| commit | 460f5b42af82f4f4232f605b3d4f71abcbbd5d4b (patch) | |
| tree | f8e008d4d7c32b50e3eac2f57f89dd144089c13d /src/plist.c | |
| parent | 49606077d0eddddc7d23d384dacbf8330bd6310a (diff) | |
| download | libplist-460f5b42af82f4f4232f605b3d4f71abcbbd5d4b.tar.gz libplist-460f5b42af82f4f4232f605b3d4f71abcbbd5d4b.tar.bz2 | |
Fix data buffer retrieval. Bump version to 0.10.v0.10
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plist.c b/src/plist.c index 169ed07..2a70a09 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | 22 | ||
| @@ -269,7 +269,7 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu | |||
| 269 | break; | 269 | break; |
| 270 | case PLIST_DATA: | 270 | case PLIST_DATA: |
| 271 | *((uint8_t **) value) = (uint8_t *) malloc(*length * sizeof(uint8_t)); | 271 | *((uint8_t **) value) = (uint8_t *) malloc(*length * sizeof(uint8_t)); |
| 272 | memcpy(value, data->buff, *length * sizeof(uint8_t)); | 272 | memcpy(*((uint8_t **) value), data->buff, *length * sizeof(uint8_t)); |
| 273 | break; | 273 | break; |
| 274 | case PLIST_DATE: | 274 | case PLIST_DATE: |
| 275 | //exception : here we use memory on the stack since it is just a temporary buffer | 275 | //exception : here we use memory on the stack since it is just a temporary buffer |
