Browse Source

Fix of by 8

master
Jeroen Vreeken 4 years ago
parent
commit
173e1beb31
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dml_reflector.c
  2. +1
    -1
      dml_trx.c

+ 1
- 1
dml_reflector.c View File

@ -392,7 +392,7 @@ int main(int argc, char **argv)
size_t header_size;
uint8_t *sl_header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (sl_header) {
header = calloc(1, header_size);
header = calloc(1, header_size + 8);
memcpy(header + 8, sl_header, header_size);
memset(header, 0xff, 6);


+ 1
- 1
dml_trx.c View File

@ -1106,7 +1106,7 @@ int main(int argc, char **argv)
size_t header_size;
uint8_t *sl_header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (sl_header) {
header = calloc(1, header_size);
header = calloc(1, header_size + 8);
memcpy(header + 8, sl_header, header_size);
memset(header, 0xff, 6);


Loading…
Cancel
Save