Skip to content

Commit

Permalink
Merge pull request #1881 from cfi-gb/patch-1
Browse files Browse the repository at this point in the history
Minor coding style / function description update
  • Loading branch information
bjoernricks authored Dec 5, 2022
2 parents 6f6084d + 8a2dff8 commit dcaff47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -5336,8 +5336,8 @@ get_cve_filename (char *item_id)
/**
* @brief Compute the filename where a given CERT-Bund Advisory can be found.
*
* @param[in] item_id CERT-Bund identifier without version
("CB-K??/????" or "WID-SEC-????-????")
* @param[in] item_id CERT-Bund identifier without version
* ("CB-K??/????" or "WID-SEC-????-????")
*
* @return A dynamically allocated string (to be g_free'd) containing the
* path to the desired file or NULL on error.
Expand All @@ -5351,7 +5351,7 @@ get_cert_bund_adv_filename (char *item_id)
{
return g_strdup_printf (CERT_BUND_ADV_FILENAME_FMT, year);
}
if (sscanf (item_id, "WID-SEC-%d-%*s", &year) == 1 )
if (sscanf (item_id, "WID-SEC-%d-%*s", &year) == 1)
{
// new year format is YYYY thus subtract 2000 from the int
return g_strdup_printf (CERT_BUND_ADV_FILENAME_FMT, year - 2000);
Expand Down

0 comments on commit dcaff47

Please sign in to comment.