From 33bd6650b2d2b0ded5bfd41de36d622acd4a362b Mon Sep 17 00:00:00 2001
From: Saleh Ahmed Khan <s.khan20@student.unimelb.edu.au>
Date: Sun, 15 Apr 2018 16:54:37 +1000
Subject: [PATCH] strncpy -> strcpy
---
 get.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/get.c b/get.c
index 7d4b488..353a9f0 100644
--- a/get.c
+++ b/get.c
@@ -25,7 +25,7 @@ void parse(char* req, char* root) {
     // printf("root %s\n", root);
     // printf("path %s\n", path);
     char full_path[sizeof(path) + sizeof(root)];
-    strncpy(full_path, root, sizeof(root));
+    strcpy(full_path, root);
     strcat(full_path, path);
     // full_path[sizeof(full_path)-1] = 9;
     printf("waiittt %s end\n", full_path);
-- 
GitLab