Skip to content

Commit

Permalink
fix - header guards (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesbarford authored Aug 9, 2023
1 parent 5cec2e1 commit c5e7be0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions json-selector.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* This code is released under the BSD 2 clause license.
* See the COPYING file for more information. */
#ifndef __JSON_SELECTOR_H
#define __JSON_SELECTOR_H
#ifndef JSON_SELECTOR_H
#define JSON_SELECTOR_H

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion json.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void jsonStringCatf(jsonString *js, const char *fmt, ...) {
va_list ap, copy;
va_start(ap, fmt);

size_t min_len = 128;
size_t min_len = 512;
size_t bufferlen = strlen(fmt) * 3;
size_t len = 0;
bufferlen = bufferlen > min_len ? bufferlen : min_len;
Expand Down
4 changes: 2 additions & 2 deletions json.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* This code is released under the BSD 2 clause license.
* See the COPYING file for more information. */
#ifndef __JSON_H
#define __JSON_H
#ifndef JSON_H
#define JSON_H

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit c5e7be0

Please sign in to comment.