Skip to content

Commit

Permalink
dbparser: Update XML version to 4 in pdbtool merge
Browse files Browse the repository at this point in the history
When merging patterndb files, output patterndb version 4 XML. This
partially addresses #109.

Requested-by: Fabien Wernli
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
  • Loading branch information
algernon committed Aug 4, 2014
1 parent cf62545 commit 7a69819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dbparser/pdbtool/pdbtool.c
Expand Up @@ -308,7 +308,7 @@ pdbtool_merge(int argc, char *argv[])
g_date_clear(&date, 1);
g_date_set_time_t(&date, time (NULL));

buff = g_markup_printf_escaped("<?xml version='1.0' encoding='UTF-8'?>\n<patterndb version='3' pub_date='%04d-%02d-%02d'>",
buff = g_markup_printf_escaped("<?xml version='1.0' encoding='UTF-8'?>\n<patterndb version='4' pub_date='%04d-%02d-%02d'>",
g_date_get_year(&date), g_date_get_month(&date), g_date_get_day(&date));
g_string_append(merged, buff);
g_free(buff);
Expand Down

0 comments on commit 7a69819

Please sign in to comment.