forked from github/server
fix missing nul-terminator.
This commit is contained in:
parent
f68fcf40a6
commit
7d79822aa4
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,10 @@ int unicode_utf8_mkname(utf8_t * op, size_t outlen, const utf8_t * ip)
|
|||
}
|
||||
ip += size;
|
||||
}
|
||||
if (outlen <= 0) {
|
||||
return ENOMEM;
|
||||
}
|
||||
*op = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue