We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f71096 commit 1bd5018Copy full SHA for 1bd5018
ggml/src/ggml-metal.m
@@ -60,7 +60,7 @@
60
61
ctx->support_simdgroup_mm = [ctx->mtl_device supportsFamily:MTLGPUFamilyApple7];
62
63
- strncpy(ctx->name, [[ctx->mtl_device name] UTF8String], sizeof(ctx->name));
+ strncpy(ctx->name, [[ctx->mtl_device name] UTF8String], sizeof(ctx->name) - 1);
64
}
65
66
ctx->mtl_device_ref_count++;
0 commit comments