Skip to content

Commit

Permalink
Merge pull request #2400 from pqarmitage/updates
Browse files Browse the repository at this point in the history
all: fix clean_path()
  • Loading branch information
pqarmitage committed Apr 1, 2024
2 parents 84df249 + 699bc10 commit fedfe52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ clean_path(const char *old_argv)

slash = strchr(ip, '/');
if (!slash)
strcpy(op, slash);
strcpy(op, ip);
else if (slash > ip) {
strncpy(op, ip, slash - ip);
op += slash - ip;
Expand Down

0 comments on commit fedfe52

Please sign in to comment.