mirror of https://gerrit.osmocom.org/libtelnet
minor formatting update
This commit is contained in:
parent
a25ee61f2b
commit
a63ff7f427
|
@ -241,8 +241,8 @@ static INLINE void _set_rfc1143(telnet_t *telnet, unsigned char telopt,
|
||||||
* to the number of enabled options for most simple code, and it
|
* to the number of enabled options for most simple code, and it
|
||||||
* allows for an acceptable number of reallocations for complex code.
|
* allows for an acceptable number of reallocations for complex code.
|
||||||
*/
|
*/
|
||||||
if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q, sizeof(
|
if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q,
|
||||||
telnet_rfc1143_t) * (telnet->q_size + 1))) == 0) {
|
sizeof(telnet_rfc1143_t) * (telnet->q_size + 4))) == 0) {
|
||||||
_error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0,
|
_error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0,
|
||||||
"malloc() failed: %s", strerror(errno));
|
"malloc() failed: %s", strerror(errno));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue