search for: hive_version_buf

Displaying 1 result from an estimated 1 matches for "hive_version_buf".

2011 Dec 13
1
[hivex] [PATCH 1/2] hivex: Expose hive major and minor version
...intf (stderr, _("hive_major_version: failed to determine major version\n")); + exit (EXIT_FAILURE); + } else if (hive_minor_version < 0) { + fprintf (stderr, _("hive_minor_version: failed to determine minor version\n")); + exit (EXIT_FAILURE); + } else { + char *hive_version_buf = (char *) calloc (8, sizeof (char)); + if (hive_version_buf == NULL) { + fprintf (stderr, _("calloc: failed to allocate version buffer\n")); + exit (EXIT_FAILURE); + } else { + snprintf (hive_version_buf, 8, "%" PRIu32 ".%" PRIu32, hive_major_vers...