Skip to content

Commit 3fd4a16

Browse files
committed
Fix wspr_encode buffer overflow
1 parent 9fedd04 commit 3fd4a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JTEncode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ void JTEncode::jt4_encode(const char * msg, uint8_t * symbols)
201201
*/
202202
void JTEncode::wspr_encode(const char * call, const char * loc, const int8_t dbm, uint8_t * symbols)
203203
{
204-
char call_[7];
205-
char loc_[5];
204+
char call_[12];
205+
char loc_[7];
206206
uint8_t dbm_ = dbm;
207207
strcpy(call_, call);
208208
strcpy(loc_, loc);

0 commit comments

Comments
 (0)