Skip to content

Commit d2e34ce

Browse files
committed
fix utils.cpp
1 parent 84633a0 commit d2e34ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int mkldnn_getenv(const char *name, char *buffer, int buffer_size) {
5151
value_length = GetEnvironmentVariable(name, buffer, buffer_size);
5252
#else
5353
const char *value = ::getenv(name);
54-
value_length = value == NULL ? 0 : Xbyak::strlen(value);
54+
value_length = value == NULL ? 0 : strlen(value);
5555
#endif
5656

5757
if (value_length > INT_MAX)
@@ -65,7 +65,7 @@ int mkldnn_getenv(const char *name, char *buffer, int buffer_size) {
6565
result = int_value_length;
6666
#ifndef _WIN32
6767
if (value)
68-
Xbyak::strncpy(buffer, value, buffer_size - 1);
68+
strncpy(buffer, value, buffer_size - 1);
6969
#endif
7070
}
7171
}

0 commit comments

Comments
 (0)