Correcting logic error

This commit is contained in:
Imbus 2025-01-22 00:05:41 +01:00
parent 0b46382a56
commit aacb2f8db2

View file

@ -10,8 +10,8 @@ template = """
def genstub(syscall: str):
if not 3 >= len(syscall) <= 15:
raise ValueError("Syscall {} is too short/long!".format(syscall[:35]))
if not 3 <= len(syscall) <= 15:
raise ValueError("Syscall {name} is too short/long!".format(name=syscall[:35]))
return template.format(name=syscall)