Skip to content

Wrong arguments order in OSCMisc_matchStringPatter #1

@rbarreiros

Description

@rbarreiros

Hello,

I know this is a really old lib, but I'm actually modifying it and trying to make it work with ChibiOS and lwip, and I noticed that in OSCServer.c, in the functions OSCServer_handleParsedMessages and OSCServer_handleStoredMessages, the argument order is wrong, it's:

OSCMisc_matchStringPattern(server->handlers[i].address, OSCMessage_getAddress(entry->message))

And should be:

OSCMisc_matchStringPattern(OSCMessage_getAddress(entry->message), server->handlers[i].address)

Since in OSCMisc_matchStringPattern, the argument being tested for wildcards is the second, and the wildcards should be in the handlers right ?

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions