gpsd-dev
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]