We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9334f3c commit f9b979bCopy full SHA for f9b979b
addons/audio/oss.c
@@ -161,7 +161,7 @@ static int oss_open_ver4()
161
162
if (audioinfo.enabled) {
163
if (strlen(audioinfo.devnode)) {
164
- strncpy(oss_audio_device, audioinfo.devnode, 512);
+ strncpy(oss_audio_device, audioinfo.devnode, 511);
165
}
166
else if (audioinfo.legacy_device != -1) {
167
sprintf(oss_audio_device, "/dev/dsp%i", audioinfo.legacy_device);
@@ -225,7 +225,7 @@ static int oss_open_ver3(void)
225
226
227
close(fd);
228
- strncpy(oss_audio_device, oss_audio_device_ver3, 512);
+ strncpy(oss_audio_device, oss_audio_device_ver3, 511);
229
ALLEGRO_INFO("Using device: %s\n", oss_audio_device);
230
231
using_ver_4 = false;
0 commit comments