Introducing LunaBuild to the build flow (#36)
[lunaix-os.git] / lunaix-os / kernel / fs / ramfs / ramfs.c
index 1a6826eda70f07118caf176084bdfae1ecb33169..ca40efb4a2128ef33fd4df9c7b9a1e8bf55e1f22 100644 (file)
@@ -153,7 +153,7 @@ ramfs_mksymlink(struct v_inode* this, const char* target)
 
     assert(!(rinode->flags & RAMF_SYMLINK));
 
-    size_t len = strlen(target);
+    size_t len = strlen(target) + 1;
     char* symlink = valloc(len);
 
     if (!symlink) {