]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - pak.c
More function flatening
[xonotic/gmqcc.git] / pak.c
diff --git a/pak.c b/pak.c
index 043ef8957a53ffed4817fda9bb5d3f9a8e28fc14..fd80dea3145660b4c34cedb016c3717f9ce20376 100644 (file)
--- a/pak.c
+++ b/pak.c
@@ -361,7 +361,7 @@ bool pak_insert_one(pak_file_t *pak, const char *file) {
         return false;
     }
 
-    strcpy(dir.name, file);
+    strncpy(dir.name, file, strlen(file));
 
     /*
      * Allocate some memory for loading in the data that will be