File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -551,14 +551,14 @@ void reloadRoomMain()
551
551
// NewBero and NewMap need to be global variables
552
552
553
553
char *tempNewBero = ReloadRoom.NewBero ;
554
- constexpr uint32_t NewBeroSize = sizeof (ReloadRoom.NewBero );
554
+ constexpr uint32_t NewBeroSize = sizeof (ReloadRoom.NewBero ) - 1 ;
555
555
strncpy (tempNewBero, ttyd::seq_mapchange::NextBero, NewBeroSize);
556
- tempNewBero[NewBeroSize - 1 ] = ' \0 ' ;
556
+ tempNewBero[NewBeroSize] = ' \0 ' ;
557
557
558
- constexpr uint32_t NewMapSize = sizeof (ReloadRoom.NewMap );
559
558
char *tempNewMap = ReloadRoom.NewMap ;
559
+ constexpr uint32_t NewMapSize = sizeof (ReloadRoom.NewMap ) - 1 ;
560
560
strncpy (tempNewMap, ttyd::seq_mapchange::NextMap, NewMapSize);
561
- tempNewMap[NewMapSize - 1 ] = ' \0 ' ;
561
+ tempNewMap[NewMapSize] = ' \0 ' ;
562
562
563
563
setSeqMapChange (tempNewMap, tempNewBero);
564
564
You can’t perform that action at this time.
0 commit comments