summaryrefslogtreecommitdiffstats
path: root/libusbmuxd
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd')
-rw-r--r--libusbmuxd/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index e06ee61..98e92df 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -189,7 +189,7 @@ static int receive_packet(int sfd, struct usbmuxd_header *header, void **payload
char *strval = NULL;
plist_get_string_val(n, &strval);
if (strval) {
- strcpy(dev->serial_number, strval);
+ strncpy(dev->serial_number, strval, 255);
free(strval);
}
n = plist_dict_get_item(props, "LocationID");