Skip to content

Commit a62eb16

Browse files
committed
Fix bug in WKS parser
1 parent 6c63559 commit a62eb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/wks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static really_inline int32_t scan_protocol(
9292
uint8_t digit;
9393
int32_t number = 0;
9494
size_t index = 0;
95-
while ((digit = (uint8_t)name[index++]) - '0' <= 9)
95+
while ((digit = (uint8_t)name[index++] - '0') <= 9)
9696
number = number * 10 + digit;
9797

9898
if (index != length || number > 255)

0 commit comments

Comments
 (0)