Permalink
Browse files

fix c compatibility

  • Loading branch information...
1 parent 1b9baa2 commit b369123fe50037d908b92aaea332b66f446865d0 @prusnak prusnak committed Feb 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 main.c
View
3 main.c
@@ -4,12 +4,13 @@
int main(int argc, char *argv[])
{
int side, i, j, a;
+ unsigned char bitdata[MAX_BITDATA];
+
if (argc < 2) {
printf("Pass string as first command line parameter.\n");
return 1;
}
- unsigned char bitdata[MAX_BITDATA];
side = QREncode(QR_LEVEL_H, 0, argv[1], 0, bitdata);
for (i = 0; i < side+2; i++) printf("██");

0 comments on commit b369123

Please sign in to comment.