Skip to content

Commit fedfe52

Browse files
authored
Merge pull request #2400 from pqarmitage/updates
all: fix clean_path()
2 parents 84df249 + 699bc10 commit fedfe52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/notify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ clean_path(const char *old_argv)
712712

713713
slash = strchr(ip, '/');
714714
if (!slash)
715-
strcpy(op, slash);
715+
strcpy(op, ip);
716716
else if (slash > ip) {
717717
strncpy(op, ip, slash - ip);
718718
op += slash - ip;

0 commit comments

Comments
 (0)