Skip to content

Commit 094894a

Browse files
committed
Merge branch 'github-pull-44'
Remove some GNU extensions. Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
2 parents 61b3499 + 328dc77 commit 094894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/initrd-put/initrd-put.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void enqueue_canonicalized_path(const char *name, bool add_recursively)
216216
if (!IS_ABSOLUTE_FILE_NAME(name)) {
217217
if (getcwd(rname, sizeof(rname)) == NULL)
218218
err(EXIT_FAILURE, "unable to get current directory");
219-
dest = rawmemchr(rname, '\0');
219+
dest = rname + strlen(rname);
220220
} else {
221221
dest = rname;
222222
*dest++ = '/';

0 commit comments

Comments
 (0)