Skip to content

Commit

Permalink
Working on resolving free errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech committed Aug 17, 2024
1 parent ebf4c41 commit 0bc9f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderd.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ enum protoCmd rx_request(struct protocol *req, int fd)

// Upgrade version 1 and 2 to version 3
if (req->ver == 1) {
strcpy(req->xmlname, "default");
strncpy(req->xmlname, "default", sizeof(req->xmlname));
}

if (req->ver < 3) {
Expand Down

0 comments on commit 0bc9f89

Please sign in to comment.