# fix at least all format warnings --- spfmilter-2.001/iptab.c 2015-02-15 04:03:38.000000000 +0000 +++ spfmilter-2.001/iptab.c.new 2022-02-06 21:35:00.906962490 +0000 @@ -196,21 +196,21 @@ for ( i = 0; i < 8; ++i ) s[i] = 0; - if ( sscanf( str, "%x:%x:%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6], &s[7] ) == 8 ) + if ( sscanf( str, "%d:%d:%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6], &s[7] ) == 8 ) w = 128; - else if ( sscanf( str, "%x:%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6] ) == 7 ) + else if ( sscanf( str, "%d:%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6] ) == 7 ) w = 112; - else if ( sscanf( str, "%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5] ) == 6 ) + else if ( sscanf( str, "%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5] ) == 6 ) w = 96; - else if ( sscanf( str, "%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4] ) == 5 ) + else if ( sscanf( str, "%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4] ) == 5 ) w = 80; - else if ( sscanf( str, "%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3] ) == 4 ) + else if ( sscanf( str, "%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3] ) == 4 ) w = 64; - else if ( sscanf( str, "%x:%x:%x", &s[0], &s[1], &s[2] ) == 3 ) + else if ( sscanf( str, "%d:%d:%d", &s[0], &s[1], &s[2] ) == 3 ) w = 48; - else if ( sscanf( str, "%x:%x", &s[0], &s[1] ) == 2 ) + else if ( sscanf( str, "%d:%d", &s[0], &s[1] ) == 2 ) w = 32; - else if ( sscanf( str, "%x", &s[0] ) == 1 ) + else if ( sscanf( str, "%d", &s[0] ) == 1 ) w = 16; else w = 0; @@ -292,7 +292,7 @@ slash = strchr( str, '/' ); if ( slash != (const char*) 0 ) { - if ( sscanf( slash, "/%d", &ipa->prefixlen ) != 1 ) + if ( sscanf( slash, "/%x", &ipa->prefixlen ) != 1 ) { err = ite_widthinvalid; return false;