summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plist.c8
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