Redo d3d40689 that was lost in upmerging

This commit is contained in:
Ralph Lange
2020-08-25 16:06:39 +02:00
parent e8bee54531
commit f8df3473ab

View File

@@ -63,10 +63,10 @@ LIBCOM_API int epicsStdCall osiSockAttach()
DWORD titleLength = GetConsoleTitle(title, sizeof(title));
if (titleLength) {
titleLength = strlen (title);
strncat (title, " " EPICS_VERSION_STRING, sizeof(title));
strncat (title, " " EPICS_VERSION_STRING, sizeof(title)-1);
}
else {
strncpy(title, EPICS_VERSION_STRING, sizeof(title));
strncpy(title, EPICS_VERSION_STRING, sizeof(title)-1);
}
title[sizeof(title)-1]= '\0';
SetConsoleTitle(title);