Skip to content

Commit

Permalink
fix genos_strndstcat function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 14, 2023
1 parent 026c9f4 commit ae7c4bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib_jtag_core/src/os_interface/os_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ char * genos_strndstcat( char *dest, const char *src, size_t maxdestsize )
i++;
j++;
}

if( i < maxdestsize )
{
dest[i] = '\0';
}
}

return dest;
Expand Down

0 comments on commit ae7c4bf

Please sign in to comment.