We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 715e29f commit a9c21d6Copy full SHA for a9c21d6
1 file changed
qrenc.c
@@ -32,6 +32,7 @@
32
#endif
33
34
#include "qrencode.h"
35
+#include "qrinput.h"
36
37
#define INCHES_PER_METER (100.0/2.54)
38
@@ -237,7 +238,7 @@ static int color_set(unsigned char color[4], const char *value)
237
238
return 0;
239
}
240
-#define MAX_DATA_SIZE (7090 * 2) /* timed by the safty factor 2 */
241
+#define MAX_DATA_SIZE ( (7089 * MAX_STRUCTURED_SYMBOLS + 1) * 2) /* timed by the safty factor 2 */
242
static unsigned char data_buffer[MAX_DATA_SIZE];
243
static unsigned char *readFile(FILE *fp, int *length)
244
{
0 commit comments