Skip to content

Commit

Permalink
Update property key, value length limits per spec change
Browse files Browse the repository at this point in the history
Increase the minimum key and value lengths to pass the tests added in
<editorconfig/editorconfig-core-test#41>.
  • Loading branch information
cxw42 committed Oct 30, 2022
1 parent 47bb38c commit 16d1d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ int ini_parse_file(FILE* file,
#endif

#define MAX_SECTION_NAME 4096
#define MAX_PROPERTY_NAME 50
#define MAX_PROPERTY_VALUE 255
#define MAX_PROPERTY_NAME 1024
#define MAX_PROPERTY_VALUE 4096

/* Nonzero to allow a UTF-8 BOM sequence (0xEF 0xBB 0xBF) at the start of
the file. See http://code.google.com/p/inih/issues/detail?id=21 */
Expand Down

0 comments on commit 16d1d92

Please sign in to comment.