Add initrd
diff --git a/src/mkinitrd/Makefile b/src/mkinitrd/Makefile
index 66b7893..b121b75 100644
--- a/src/mkinitrd/Makefile
+++ b/src/mkinitrd/Makefile
@@ -5,7 +5,10 @@
mkinitrd: $(OBJECTS)
$(CC) -o $@ $^
+install: mkinitrd
+ cp mkinitrd $(JAYROOT)/bin
+
clean:
rm -f *.o mkinitrd
-.PHONY: clean
+.PHONY: clean install
diff --git a/src/mkinitrd/main.c b/src/mkinitrd/main.c
index 228b04b..f2b3f71 100644
--- a/src/mkinitrd/main.c
+++ b/src/mkinitrd/main.c
@@ -53,7 +53,7 @@
.size = file_size(in),
};
- strncpy(file.name, 64, argv[i + 2]);
+ strcpy(file.name, argv[i + 2]);
char c;
while ((c = getc(in)) != EOF)