diff options
| author | plunky <plunky@NetBSD.org> | 2011-04-05 18:58:43 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2011-04-05 18:58:43 +0000 |
| commit | 16fde444a3eb6f3f458c5484d27fae5797bc3d32 (patch) | |
| tree | f2fb59cb054011d59045a171390eec5e2f1f3c39 /lib/libbluetooth | |
| parent | fcc47fccb1bf32c4d5faf4a8dc8dd34ff38416bf (diff) | |
inc pointer, so we store the value in the correct place
Diffstat (limited to 'lib/libbluetooth')
| -rw-r--r-- | lib/libbluetooth/sdp_set.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libbluetooth/sdp_set.c b/lib/libbluetooth/sdp_set.c index 54b61c1f64a..ca57a606c76 100644 --- a/lib/libbluetooth/sdp_set.c +++ b/lib/libbluetooth/sdp_set.c @@ -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 @@ sdp_set_bool(const sdp_data_t *data, bool value) uint8_t *p = data->next; if (p + 2 > data->end - || *p != SDP_DATA_BOOL) + || *p++ != SDP_DATA_BOOL) return false; *p = (value ? 0x01 : 0x00); |
