util: handle ampersand.
This commit is contained in:
parent
32ec3cc822
commit
6b46fcea2a
|
@ -25,6 +25,13 @@ _man2entry(const char *text)
|
|||
memcpy(&str[i], ">", 4);
|
||||
i += 4;
|
||||
}
|
||||
else if (*p == '&')
|
||||
{
|
||||
tmp = realloc(str, (len += 5));
|
||||
str = tmp;
|
||||
memcpy(&str[i], "&", 5);
|
||||
i += 5;
|
||||
}
|
||||
else if (*p == '\t')
|
||||
{
|
||||
tmp = realloc(str, (len += 8));
|
||||
|
|
Loading…
Reference in New Issue