Diff between 7659391a25fd2f0aa17441ee4fb12c67e767f6fa and 962688893d95e77b7a37e9fcfa0f3d44b771885d

Changed Files

File Additions Deletions Status
thermometer/thermometer.c +2 -1 modified

Full Patch

diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c
index 614da18..914f77c 100644
--- a/thermometer/thermometer.c
+++ b/thermometer/thermometer.c
@@ -49,6 +49,7 @@
 #define FLOAT_MAX_MANTISSA	16777216 /* 2^24 */
 
 #define VALID_RANGE_DESC_SIZE	4
+#define TEMPERATURE_TYPE_SIZE	1
 
 struct thermometer {
 	DBusConnection		*conn;		/* The connection to the bus */
@@ -445,7 +446,7 @@ static void read_temp_type_cb(guint8 status, const guint8 *pdu, guint16 len,
 {
 	struct characteristic *ch = user_data;
 	struct thermometer *t = ch->t;
-	uint8_t value[ATT_MAX_MTU];
+	uint8_t value[TEMPERATURE_TYPE_SIZE];
 	ssize_t vlen;
 
 	if (status != 0) {