Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 824ef03

Browse files
author
Narsimham Chelluri
committed
Allow parsing of license keys up to 99 characters long
1 parent bc4da86 commit 824ef03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/geoipupdate.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static int parse_license_file(geoipupdate_s *up) {
240240
say_if(up->verbose, "AccountID %d\n", up->license.account_id);
241241
continue;
242242
}
243-
if (sscanf(strt, "LicenseKey %12s", &up->license.license_key[0]) == 1) {
243+
if (sscanf(strt, "LicenseKey %99s", &up->license.license_key[0]) == 1) {
244244
say_if(
245245
up->verbose, "LicenseKey %.4s...\n", up->license.license_key);
246246
continue;

0 commit comments

Comments
 (0)