"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tpl.c" between
goaccess-1.7.1.tar.gz and goaccess-1.7.2.tar.gz

About: GoAccess is a real-time web log analyzer and interactive viewer ("text-based").

tpl.c  (goaccess-1.7.1):tpl.c  (goaccess-1.7.2)
skipping to change at line 1479 skipping to change at line 1479
datapeek_flen = strlen (datapeek_f); datapeek_flen = strlen (datapeek_f);
if (strspn (datapeek_f, tpl_datapeek_ok_chars) < datapeek_flen) { if (strspn (datapeek_f, tpl_datapeek_ok_chars) < datapeek_flen) {
tpl_hook.oops ("invalid TPL_DATAPEEK format: %s\n", datapeek_f); tpl_hook.oops ("invalid TPL_DATAPEEK format: %s\n", datapeek_f);
tpl_hook.free (fmt_cpy); tpl_hook.free (fmt_cpy);
fmt_cpy = NULL; /* fail */ fmt_cpy = NULL; /* fail */
goto fail; goto fail;
} }
if (strncmp (&fmt[first_atom], datapeek_f, datapeek_flen) != 0) { if (strncmp (&fmt[first_atom], datapeek_f, datapeek_flen) != 0) {
tpl_hook.oops ("TPL_DATAPEEK format mismatches tpl iamge\n"); tpl_hook.oops ("TPL_DATAPEEK format mismatches tpl image\n");
tpl_hook.free (fmt_cpy); tpl_hook.free (fmt_cpy);
fmt_cpy = NULL; /* fail */ fmt_cpy = NULL; /* fail */
goto fail; goto fail;
} }
/* advance to data start, then copy out requested elements */ /* advance to data start, then copy out requested elements */
dv = (void *) ((uintptr_t) dv + (num_fxlens * sizeof (uint32_t))); dv = (void *) ((uintptr_t) dv + (num_fxlens * sizeof (uint32_t)));
for (datapeek_c = datapeek_f; *datapeek_c != '\0'; datapeek_c++) { for (datapeek_c = datapeek_f; *datapeek_c != '\0'; datapeek_c++) {
datapeek_p = va_arg (ap, void *); datapeek_p = va_arg (ap, void *);
if (*datapeek_c == 's') { /* special handling for strings */ if (*datapeek_c == 's') { /* special handling for strings */
 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)