]> git.sur5r.net Git - glabels/blob - debian/patches/30_Werror-format-security.patch
Imported Debian patch 2.2.8-3
[glabels] / debian / patches / 30_Werror-format-security.patch
1 Description: add format argument to sprintf call to prevent failure with -Werror=format-security
2 Origin: vendor
3 Bug-Debian: http://bugs.debian.org/bug=643390
4 Forwarded: no
5 Author: gregor herrmann <gregoa@debian.org>
6 Last-Update: 2011-12-19
7
8 --- a/barcode-0.98/plessey.c
9 +++ b/barcode-0.98/plessey.c
10 @@ -148,7 +148,7 @@
11                          checkptr[i+j] ^= check[j];
12      }
13      for (i = 0; i < 8; i++) {
14 -        sprintf(ptr, patterns[checkptr[strlen(text) * 4 + i]]);
15 +        sprintf(ptr, "%s", patterns[checkptr[strlen(text) * 4 + i]]);
16         ptr += 2;
17      }
18      fprintf(stderr, "CRC: ");