aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalarm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalarm.c b/lib/libalarm.c
index 9dc9ae0..20448aa 100644
--- a/lib/libalarm.c
+++ b/lib/libalarm.c
@@ -58,7 +58,7 @@ int send_string(int sock, char *buffer)
int send_packet_uuid(int sock, uint32_t packet_type, uuid_t uuid)
{
return (send(sock, &packet_type, sizeof(packet_type), 0) != sizeof(packet_type)
- || send(sock, uuid, 16, 0) != 16);
+ || send(sock, uuid, sizeof(uuid_t), 0) != 16);
}
/** End helper functions ***********/