summaryrefslogtreecommitdiff
path: root/map65/pa_get_device_info.c
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /map65/pa_get_device_info.c
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'map65/pa_get_device_info.c')
-rw-r--r--map65/pa_get_device_info.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/map65/pa_get_device_info.c b/map65/pa_get_device_info.c
index 968d3434..934ddc94 100644
--- a/map65/pa_get_device_info.c
+++ b/map65/pa_get_device_info.c
@@ -53,9 +53,16 @@ int pa_get_device_info (int n,
if(n >= Pa_GetDeviceCount() ) return -1;
deviceInfo = Pa_GetDeviceInfo(n);
if (deviceInfo->maxInputChannels==0) return -1;
- sprintf((char*)(pa_device_name),"%s",deviceInfo->name);
- sprintf((char*)(pa_device_hostapi),"%s",
- Pa_GetHostApiInfo( deviceInfo->hostApi )->name);
+ snprintf((char*)pa_device_name,
+ 128,
+ "%.127s",
+ deviceInfo->name);
+
+snprintf((char*)pa_device_hostapi,
+ 128,
+ "%.127s",
+ Pa_GetHostApiInfo(deviceInfo->hostApi)->name);
+
speed_warning=0;
// bypass bug in Juli@ ASIO driver: