1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00
This commit is contained in:
bsongis 2014-06-11 08:19:47 +02:00
parent 5d037327d4
commit 0f495a6fd9

View file

@ -327,8 +327,8 @@ void getLogicalSwitchAudioFile(char * filename, int index, unsigned int event)
char * str = getModelPath(filename);
int len = STR_VSWITCHES[0];
strncpy(str, &STR_VSWITCHES[1+len*(index+SWSRC_FIRST_LOGICAL_SWITCH)], len);
str += len;
strcpy(str, suffixes[event]);
str[len] = '\0';
strcat(str, suffixes[event]);
strcat(str, SOUNDS_EXT);
}