gallium/swr: Fix compilation warnings
[mesa.git] / src / gallium / drivers / swr / rasterizer / common / rdtsc_buckets.cpp
index 2404ae7590d1ab82b733c6a0b2c4b81672e85f9d..e2076e8fc4439d8c9291cf1fec58b13a040854d3 100644 (file)
@@ -106,7 +106,7 @@ void BucketManager::PrintBucket(
     std::string str = arrows[level];
     str += desc.name;
     char hier[80];
-    strcpy_s(hier, sizeof(hier), str.c_str());
+    strcpy_s(hier, sizeof(hier)-1, str.c_str());
 
     // print out
     fprintf(f,