Use epicsSnprintf() for old MSVC compilers

This commit is contained in:
Andrew Johnson
2023-12-14 11:27:30 -06:00
parent 5ecf7d18a8
commit 2e6fd505d2
6 changed files with 13 additions and 12 deletions

View File

@@ -13,11 +13,11 @@
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <math.h>
#include "epicsStdio.h"
#include "epicsThread.h"
#include "epicsEvent.h"
#include "epicsTime.h"
@@ -73,7 +73,7 @@ void testMyThread()
int startPriority = 0;
for (int i = 0; i < ntasks; i++) {
char name[10];
snprintf(name, sizeof(name), "t%d", i);
epicsSnprintf(name, sizeof(name), "t%d", i);
myThreads[i] = new myThread(i, name);
if (i == 0)
startPriority = myThreads[i]->thread.getPriority();