diff --git a/sqli_data.go b/sqli_data.go index 024bd6c..1fedfb4 100644 --- a/sqli_data.go +++ b/sqli_data.go @@ -56,7 +56,7 @@ func parseByteFunctions(s *sqliState, parse byte) int { } func buildByteParsers() []byteParser { - parsers := make([]byteParser, 256, 256) + parsers := make([]byteParser, 256) for i := 0; i < 256; i++ { switch i { case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32: diff --git a/xss_test.go b/xss_test.go index c9e19d9..47f0c65 100644 --- a/xss_test.go +++ b/xss_test.go @@ -2,7 +2,7 @@ package libinjection import ( "fmt" - "io/ioutil" + "os" "strings" "testing" ) @@ -108,7 +108,7 @@ func runXSSTest(filename, flag string) { func TestXSSDriver(t *testing.T) { baseDir := "./tests/" - dir, err := ioutil.ReadDir(baseDir) + dir, err := os.ReadDir(baseDir) if err != nil { t.Fatal(err) }