"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pcre/dftables.c" between
tin-2.4.3.tar.xz and tin-2.4.4.tar.xz

About: TIN is a threaded NNTP and spool based UseNet newsreader.

dftables.c  (tin-2.4.3.tar.xz):dftables.c  (tin-2.4.4.tar.xz)
skipping to change at line 67 skipping to change at line 67
FILE *f; FILE *f;
const unsigned char *tables = pcre_maketables(); const unsigned char *tables = pcre_maketables();
const unsigned char *base_of_tables = tables; const unsigned char *base_of_tables = tables;
if (argc != 2) if (argc != 2)
{ {
fprintf(stderr, "dftables: one filename argument is required\n"); fprintf(stderr, "dftables: one filename argument is required\n");
return 1; return 1;
} }
f = fopen(argv[1], "wb"); f = fopen(argv[1], "w+");
if (f == NULL) if (f == NULL)
{ {
fprintf(stderr, "dftables: failed to open %s for writing\n", argv[1]); fprintf(stderr, "dftables: failed to open %s for writing\n", argv[1]);
return 1; return 1;
} }
/* There are two fprintf() calls here, because gcc in pedantic mode complains /* There are two fprintf() calls here, because gcc in pedantic mode complains
about the very long string otherwise. */ about the very long string otherwise. */
fprintf(f, fprintf(f,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)