Refs #519. Avoid calling strncpy.
This commit is contained in:
@@ -363,7 +363,7 @@ static gotoblas_t *force_coretype(char *coretype){
|
|||||||
int i ;
|
int i ;
|
||||||
int found = -1;
|
int found = -1;
|
||||||
char message[128];
|
char message[128];
|
||||||
char mname[20];
|
//char mname[20];
|
||||||
|
|
||||||
for ( i=1 ; i <= 21; i++)
|
for ( i=1 ; i <= 21; i++)
|
||||||
{
|
{
|
||||||
@@ -375,8 +375,8 @@ static gotoblas_t *force_coretype(char *coretype){
|
|||||||
}
|
}
|
||||||
if (found < 0)
|
if (found < 0)
|
||||||
{
|
{
|
||||||
strncpy(mname,coretype,20);
|
//strncpy(mname,coretype,20);
|
||||||
sprintf(message, "Core not found: %s\n",mname);
|
snprintf(message, 128, "Core not found: %s\n",coretype);
|
||||||
openblas_warning(1, message);
|
openblas_warning(1, message);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user