Skip to content

Commit

Permalink
Don't take address-of array, breaks on GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Nov 25, 2024
1 parent 3015ced commit dc7e12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reprozip/native/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ static int handle_socket(struct Process *process, const char *msg,
{
struct sockaddr_un *address_ = address;
char buf[109];
strncpy(buf, &address_->sun_path, 108);
strncpy(buf, address_->sun_path, 108);
buf[108] = 0;
log_info(process->tid, "%s unix:%s", msg, buf);

Expand Down

0 comments on commit dc7e12b

Please sign in to comment.