Skip to content

Commit b764006

Browse files
authored
Update note-c dependency (#73)
* remove note-c before re-add * Squashed 'src/note-c/' content from commit 2898b82 git-subtree-dir: src/note-c git-subtree-split: 2898b821392663b6de6ab359a56c41401ab96c95
1 parent fc42130 commit b764006

File tree

7 files changed

+529
-193
lines changed

7 files changed

+529
-193
lines changed

src/note-c/n_cjson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static Jbool print_number(const J * const item, printbuffer * const output_buffe
395395
JNUMBER d = item->valuenumber;
396396
int length = 0;
397397
size_t i = 0;
398-
unsigned char number_buffer[26]; /* temporary buffer to print the number into */
398+
unsigned char number_buffer[JNTOA_MAX]; /* temporary buffer to print the number into */
399399
unsigned char decimal_point = get_decimal_point();
400400

401401
if (output_buffer == NULL) {

src/note-c/n_cjson_helpers.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ bool JGetBinaryFromObject(J *rsp, const char *fieldName, uint8_t **retBinaryData
350350
// Allocate a buffer for the payload
351351
char *p = (char *) _Malloc(JB64DecodeLen(payload));
352352
if (p == NULL) {
353-
return false;
354-
}
353+
return false;
354+
}
355355
uint32_t actualLen = JB64Decode(p, payload);
356356

357-
// Return the binary to the caller
358-
*retBinaryData = (uint8_t *)p;
359-
*retBinaryDataLen = actualLen;
360-
return true;
357+
// Return the binary to the caller
358+
*retBinaryData = (uint8_t *)p;
359+
*retBinaryDataLen = actualLen;
360+
return true;
361361

362362
}
363363

0 commit comments

Comments
 (0)