mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 13:46:18 +00:00
c16def7032
* Switch: it builds * Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected. * Switch: Update kernel stuff again * Switch: Downgrade Alsa packages to version in 4.x tree * Joycond: Update Switch version * Switch: Minor fixes * LibreELEC: Fix a few broken files from upstream pull * Switch: Fix LibreELEC build. * Switch: Update bootloader stuff * L4T: FFMPEG: Add support for nvv4l2 decoder/encoder * FFMPEG: Add back encoder support for game recording in retroarch * FFMPEG: revert a few changes, and add support for vulkan.
23 lines
726 B
Diff
23 lines
726 B
Diff
From: Alec Leamas <leamas.alec@gmail.com>
|
|
Date: Sun, 30 Dec 2018 21:26:15 +0100
|
|
Subject: [PATCH] lircd: Fix --connect option parsing error (#343).
|
|
|
|
Bug: https://sourceforge.net/p/lirc/tickets/343/
|
|
---
|
|
daemons/lircd.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/daemons/lircd.cpp b/daemons/lircd.cpp
|
|
index d5be708..ad8dde9 100644
|
|
--- a/daemons/lircd.cpp
|
|
+++ b/daemons/lircd.cpp
|
|
@@ -790,7 +790,7 @@ int add_peer_connection(const char* server_arg)
|
|
struct servent* service;
|
|
char server[strlen(server_arg) + 1];
|
|
|
|
- strncpy(server, server_arg, sizeof(server) - 1);
|
|
+ strncpy(server, server_arg, sizeof(server));
|
|
|
|
if (peern < MAX_PEERS) {
|
|
peers[peern] = (struct peer_connection*) malloc(sizeof(
|