mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
fix off-by-one error in nick parsing
This commit is contained in:
parent
006ed09bb1
commit
29103a611a
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ psyc_uniform_parse (PsycUniform *uni, const char *buffer, size_t length)
|
|||
}
|
||||
|
||||
if (uni->resource.length)
|
||||
uni->nick = PSYC_STRING(uni->resource.data + 1, uni->resource.length);
|
||||
uni->nick = PSYC_STRING(uni->resource.data + 1, uni->resource.length - 1);
|
||||
|
||||
} else
|
||||
return PSYC_PARSE_UNIFORM_INVALID_SCHEME;
|
||||
|
|
Loading…
Reference in a new issue