Skip to content

Commit 2cf23db

Browse files
committed
Default buffer was _way_ too small.
1 parent 7d58e40 commit 2cf23db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/multi_modem.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ void multi_modem_process_rec_frame (int chan, int subchan, int slice, unsigned c
344344
// alevel gets in there somehow making me question why it is passed thru here.
345345
}
346346
else if (save_audio_config_p->achan[chan].modem_type == MODEM_EOTD) {
347-
char nmea[300];
348-
eotd_to_text (fbuf, flen, nmea, sizeof(nmea));
349-
char monfmt[276];
350-
snprintf (monfmt, sizeof(monfmt), "EOTD>%s%1d%1d:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_EOTD, nmea);
347+
char text[1024];
348+
eotd_to_text (fbuf, flen, text, sizeof(text));
349+
char monfmt[1024];
350+
snprintf (monfmt, sizeof(monfmt), "EOTD>%s%1d%1d:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_EOTD, text);
351351
pp = ax25_from_text (monfmt, 1);
352352
}
353353
else {

0 commit comments

Comments
 (0)