-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qrencode produces invalid XPM data. #193
Comments
suggested patch diff --git a/qrenc.c b/qrenc.c
index c09c4ab..d26b0d2 100644
--- a/qrenc.c
+++ b/qrenc.c
@@ -724,9 +724,11 @@ static int writeXPM(const QRcode *qrcode, const char *outfile)
}
for (y = 0; y < realmargin; y++) {
- fprintf(fp, "\"%s\"%s\n", row, y < (size - 1) ? "," : "};");
+ fprintf(fp, "\"%s\",\n", row);
}
+ fputs("};\n", fp);
+
free(row);
fclose(fp);
|
same as issue #188 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libqrencode/qrenc.c
Line 727 in 715e29f
with margin != 1
XPM data is not valid C code (although correctly processed by most image viewers)
The text was updated successfully, but these errors were encountered: