mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Fixes #1248
This commit is contained in:
parent
5d037327d4
commit
0f495a6fd9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue