mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 14:55:13 +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);
|
char * str = getModelPath(filename);
|
||||||
int len = STR_VSWITCHES[0];
|
int len = STR_VSWITCHES[0];
|
||||||
strncpy(str, &STR_VSWITCHES[1+len*(index+SWSRC_FIRST_LOGICAL_SWITCH)], len);
|
strncpy(str, &STR_VSWITCHES[1+len*(index+SWSRC_FIRST_LOGICAL_SWITCH)], len);
|
||||||
str += len;
|
str[len] = '\0';
|
||||||
strcpy(str, suffixes[event]);
|
strcat(str, suffixes[event]);
|
||||||
strcat(str, SOUNDS_EXT);
|
strcat(str, SOUNDS_EXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue