commit b75766b819fd15b97d6ecc9a30a302071188f2cb
parent 9b446b5d0e9b0ea8ac1927131339d982790b20ae
Author: Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
Date: Tue, 26 Jan 2021 18:14:56 +0100
Add proper buffer sizes
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vst.h b/vst.h
@@ -18,6 +18,7 @@
#define VST_MAGICNUMBER 'VstP'
#define VST_NAME_BUFFER_SIZE 64
+#define VST_VENDOR_BUFFER_SIZE 64
#pragma pack(push, VST_ALIGNMENT)
@@ -204,7 +205,7 @@ enum VST_EFFECT_OPCODE {
/* Retrieve the effect name into the ptr buffer.
*
- * @param p_ptr char[64] VST2.4 host, might be lower with earlier hosts?
+ * @param p_ptr char[64] Buffer containing a zero-terminated effect information string. May be shorter than 64 bytes on older hosts.
* @return Always 0, even on failure.
*/
VST_EFFECT_OPCODE_GETNAME = 0x2D,
@@ -213,7 +214,7 @@ enum VST_EFFECT_OPCODE {
/* Retrieve the vendor name into the ptr buffer.
*
- * @param p_ptr char[32]
+ * @param p_ptr char[64] Buffer containing a zero-terminated vendor information string. May be shorter than 64 bytes on older hosts.
* @return Always 0, even on failure.
*/
VST_EFFECT_OPCODE_GETVENDOR = 0x2F,