1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-22 04:53:14 +00:00

Fix warning raised by GCC 11. Was: -Wstringop-overflow

warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1254 |             *bp++ = *p;
      |             ~~~~~~^~~~
This commit is contained in:
Carles Fernandez 2021-09-29 12:52:44 +02:00
parent d7198845c0
commit fd5698b39d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 2 additions and 2 deletions

View File

@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
return -1;
}
buf = (uint8_t *)MALLOC(8);
buf = (uint8_t *)MALLOC(16);
if (!buf)
{
return -1;

View File

@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
return -1;
}
buf = (uint8_t *)MALLOC(8);
buf = (uint8_t *)MALLOC(16);
if (!buf)
{
return -1;