bugfix in indexing
[asdcplib.git] / src / AS_DCP.cpp
index 4b5acd6fd4e2c30d4e8a1e10a16c53591019ca36..a5187d67f0126885308c3d61dcbcaafe32738e0e 100755 (executable)
@@ -173,7 +173,7 @@ const char*
 ASDCP::Version()
 {
   static char ver[16];
-  sprintf(ver, "%lu.%lu.%lu", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR);
+  snprintf(ver, 16, "%lu.%lu.%lu", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR);
   return ver;
 }