OSDN Git Service

seq: Fix for snd_seq_parse_address()
authorPedro Lopez-Cabanillas <pedro.lopez.cabanillas@gmail.com>
Thu, 22 Apr 2010 13:42:20 +0000 (15:42 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 22 Apr 2010 14:08:14 +0000 (16:08 +0200)
commit19892334499ed21ed4dc30084ad8700253f9cb2f
tree8f7879b50697082c6a39dc745ffdb41c4695523f
parent8d80d5f344ae5e32d24122cbf8e759fdd1e1a60d
seq: Fix for snd_seq_parse_address()

snd_seq_parse_address() uses strncmp() to compare the client name
in the string argument with the existing clients, until it finds one
name matching the same leading characters. This may produce wrong
results when there are two sequencer clients with similar names.

Example: "KMidimon" : "Kmid"

Signed-off-by: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/seq/seqmid.c