diff options
| author | 2009-04-12 16:12:51 +0200 | |
|---|---|---|
| committer | 2009-04-12 16:12:51 +0200 | |
| commit | 460f5b42af82f4f4232f605b3d4f71abcbbd5d4b (patch) | |
| tree | f8e008d4d7c32b50e3eac2f57f89dd144089c13d | |
| parent | 49606077d0eddddc7d23d384dacbf8330bd6310a (diff) | |
| download | libplist-460f5b42af82f4f4232f605b3d4f71abcbbd5d4b.tar.gz libplist-460f5b42af82f4f4232f605b3d4f71abcbbd5d4b.tar.bz2 | |
Fix data buffer retrieval. Bump version to 0.10.v0.10
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/plist.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 09ae8e8..a39074b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | PROJECT( libplist ) | 1 | PROJECT( libplist ) |
| 2 | 2 | ||
| 3 | SET( LIBPLIST_VERSION_MAJOR "0" ) | 3 | SET( LIBPLIST_VERSION_MAJOR "0" ) |
| 4 | SET( LIBPLIST_VERSION_MINOR "8" ) | 4 | SET( LIBPLIST_VERSION_MINOR "10" ) |
| 5 | SET( LIBPLIST_SOVERSION "0" ) | 5 | SET( LIBPLIST_SOVERSION "0" ) |
| 6 | SET( LIBPLIST_VERSION "${LIBPLIST_VERSION_MAJOR}.${LIBPLIST_VERSION_MINOR}" ) | 6 | SET( LIBPLIST_VERSION "${LIBPLIST_VERSION_MAJOR}.${LIBPLIST_VERSION_MINOR}" ) |
| 7 | SET( LIBPLIST_LIBVERSION "${LIBPLIST_SOVERSION}.${LIBPLIST_VERSION}" ) | 7 | SET( LIBPLIST_LIBVERSION "${LIBPLIST_SOVERSION}.${LIBPLIST_VERSION}" ) |
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 |
