Compilation fixes

This commit is contained in:
Bertrand Songis
2016-02-21 19:35:30 +01:00
parent 358badfed9
commit 103fea7b98
5 changed files with 11 additions and 13 deletions
+1 -2
View File
@@ -509,8 +509,7 @@ char * getSourceString(char * dest, mixsrc_t idx)
if (qr.quot < MAX_SCRIPTS && qr.rem < scriptInputsOutputs[qr.quot].outputsCount) {
*dest++ = '\322';
// *dest++ = '1'+qr.quot;
strncpy(dest, scriptInputsOutputs[qr.quot].outputs[qr.rem].name, sizeof(scriptInputsOutputs[qr.quot].outputs[qr.rem].name));
dest[sizeof(scriptInputsOutputs[qr.quot].outputs[qr.rem].name)] = '\0';
strcpy(dest, scriptInputsOutputs[qr.quot].outputs[qr.rem].name);
}
#endif
}