Module Name: src
Committed By: plunky
Date: Tue Apr 5 18:58:43 UTC 2011
Modified Files:
src/lib/libbluetooth: sdp_set.c
Log Message:
inc pointer, so we store the value in the correct place
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libbluetooth/sdp_set.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libbluetooth/sdp_set.c
diff -u src/lib/libbluetooth/sdp_set.c:1.3 src/lib/libbluetooth/sdp_set.c:1.4
--- src/lib/libbluetooth/sdp_set.c:1.3 Tue Apr 5 18:19:04 2011
+++ src/lib/libbluetooth/sdp_set.c Tue Apr 5 18:58:43 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: sdp_set.c,v 1.3 2011/04/05 18:19:04 plunky Exp $ */
+/* $NetBSD: sdp_set.c,v 1.4 2011/04/05 18:58:43 plunky Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: sdp_set.c,v 1.3 2011/04/05 18:19:04 plunky Exp $");
+__RCSID("$NetBSD: sdp_set.c,v 1.4 2011/04/05 18:58:43 plunky Exp $");
#include <bluetooth.h>
#include <limits.h>
@@ -48,7 +48,7 @@
uint8_t *p = data->next;
if (p + 2 > data->end
- || *p != SDP_DATA_BOOL)
+ || *p++ != SDP_DATA_BOOL)
return false;
*p = (value ? 0x01 : 0x00);