summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-04-12 16:12:51 +0200
committerGravatar Jonathan Beck2009-04-12 16:12:51 +0200
commit460f5b42af82f4f4232f605b3d4f71abcbbd5d4b (patch)
treef8e008d4d7c32b50e3eac2f57f89dd144089c13d
parent49606077d0eddddc7d23d384dacbf8330bd6310a (diff)
downloadlibplist-0.10.tar.gz
libplist-0.10.tar.bz2
Fix data buffer retrieval. Bump version to 0.10.v0.10
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/plist.c8
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 @@
PROJECT( libplist )
SET( LIBPLIST_VERSION_MAJOR "0" )
-SET( LIBPLIST_VERSION_MINOR "8" )
+SET( LIBPLIST_VERSION_MINOR "10" )
SET( LIBPLIST_SOVERSION "0" )
SET( LIBPLIST_VERSION "${LIBPLIST_VERSION_MAJOR}.${LIBPLIST_VERSION_MINOR}" )
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -269,7 +269,7 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu
break;
case PLIST_DATA:
*((uint8_t **) value) = (uint8_t *) malloc(*length * sizeof(uint8_t));
- memcpy(value, data->buff, *length * sizeof(uint8_t));
+ memcpy(*((uint8_t **) value), data->buff, *length * sizeof(uint8_t));
break;
case PLIST_DATE:
//exception : here we use memory on the stack since it is just a temporary buffer