[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 3/5] json.h: Change JSON_VAL_MAX from 120 to 512
From: |
chris |
Subject: |
[gpsd-dev] [PATCH 3/5] json.h: Change JSON_VAL_MAX from 120 to 512 |
Date: |
Tue, 5 Jun 2012 17:26:22 +0100 |
From: Christian Gagneraud <address@hidden>
This will allow the parsing long hexdump (data fields) in the AIS code.
The longest JSON string I saw so far was 389 characters long.
scons check passed.
Signed-off-by: Christian Gagneraud <address@hidden>
---
json.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/json.h b/json.h
index a90fcc3..b691729 100644
--- a/json.h
+++ b/json.h
@@ -62,7 +62,7 @@ struct json_attr_t {
};
#define JSON_ATTR_MAX 31 /* max chars in JSON attribute name */
-#define JSON_VAL_MAX 120 /* max chars in JSON value part */
+#define JSON_VAL_MAX 512 /* max chars in JSON value part */
#ifdef __cplusplus
extern "C" {
--
1.7.7
- [gpsd-dev] [PATCH 0/5] [AIS] Modifications with potential side effects, chris, 2012/06/05
- [gpsd-dev] [PATCH 5/5] Add script to test for JSON validity, chris, 2012/06/05
- [gpsd-dev] [PATCH 1/5] gpsdecode: honor scale flag, chris, 2012/06/05
- [gpsd-dev] [PATCH 2/5] gpsd_hexdump: Always dump in hex mode, chris, 2012/06/05
- [gpsd-dev] [PATCH 3/5] json.h: Change JSON_VAL_MAX from 120 to 512,
chris <=
- [gpsd-dev] [PATCH 4/5] Add BS talker ID (used by AIS base stations), chris, 2012/06/05
- Re: [gpsd-dev] [PATCH 0/5] [AIS] Modifications with potential side effects, Eric S. Raymond, 2012/06/05