Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/map/src/mapapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ MAP_EXTERNCALL void map_set_gravity(MAP_ParameterType_t* p_type, const double gr

MAP_EXTERNCALL void map_set_input_text(MAP_InitInputType_t* init_type, const char* input_txt_line)
{
strncpy(init_type->library_input_str, input_txt_line, 254);
MAP_STRNCPY(init_type->library_input_str, input_txt_line, 254);
init_type->library_input_str[254] = '\0';
}

Expand Down
2 changes: 2 additions & 0 deletions modules/map/src/mapsys.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@
# define map_snprintf _snprintf
# define map_strcat(a,b,c) strcat_s(a,b,c)
# define MAP_STRCPY(a,b,c) strcpy_s(a,b,c)
# define MAP_STRNCPY(a,b,c) strncpy_s(a,c,b,c)
#else
# include <stdbool.h>
# define map_snprintf snprintf
# define map_strcat(a,b,c) strncat(a,c,b)
# define MAP_STRCPY(a,b,c) strcpy(a,c)
# define MAP_STRNCPY(a,b,c) strncpy(a,b,c)
#endif


Expand Down