1
0
Fork 0
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:
lurchi 2016-09-10 10:50:35 +02:00
parent 006ed09bb1
commit 29103a611a

View file

@ -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;