1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Migrate some use of strcat() to sim_strlcat()

This commit is contained in:
Mark Pizzolato
2017-03-27 08:23:03 -07:00
parent ec11ecab87
commit f4b7d1fbf8
3 changed files with 10 additions and 10 deletions

View File

@@ -3598,8 +3598,8 @@ static t_stat sim_os_ttinit (void) {
SIOUXSettings.toppixel = 42;
SIOUXSettings.leftpixel = 6;
iBeamCursorH = GetCursor(iBeamCursor);
strcat(title, sim_name);
strcat(title, " Simulator");
sim_strlcat(title, sim_name, sizeof(title));
sim_strlcat(title, " Simulator", sizeof(title));
title[0] = strlen(title) - 1; /* Pascal string done */
for (i = 0; i <= title[0]; i++) { /* copy to unsigned char */
ptitle[i] = title[i];