Skip to content

Commit

Permalink
so very opinionated
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Dec 26, 2023
1 parent 59cd564 commit ead222e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/yojimbo_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ namespace yojimbo

char buffer[MaxAddressLength];
char * address = buffer;
#ifdef _MSC_VER
strncpy_s( address, address_in, MaxAddressLength - 1 );
#else
strncpy( address, address_in, MaxAddressLength - 1 );
#endif
address[MaxAddressLength-1] = '\0';

int addressLength = (int) strlen( address );
Expand Down

0 comments on commit ead222e

Please sign in to comment.