]> git.xolatile.top Git - soikk-DB.git/commitdiff
Test commit
author= <=>
Sun, 15 May 2022 10:16:38 +0000 (12:16 +0200)
committer= <=>
Sun, 15 May 2022 10:16:38 +0000 (12:16 +0200)
include/storage.h
t1 [new file with mode: 0644]
t2 [new file with mode: 0644]

index 507c733992b905ae8a386cd58cefd57043f415e8..a30278fdae7b7c949793e7db8f52b95649f93f9b 100644 (file)
@@ -3,8 +3,8 @@
 
 #include "db.h"
 
-#define MAXPATH 4096
-#define MAXTAGS 4096
+#define MAXPATH 4094
+#define MAXTAGS 4094
 
 
 // When intializing the struct, it is recommended
@@ -12,8 +12,8 @@
 typedef struct{
        char path[MAXPATH];
        char tags[MAXTAGS];
-       uint16_t numTags;
        uint16_t lenTags;
+       uint16_t numTags;
 } row;
 
 
@@ -23,4 +23,4 @@ void insertTag(row *r, char *tag);
 
 void removeTag(row *r, char *tag);
 
-#endif
\ No newline at end of file
+#endif
diff --git a/t1 b/t1
new file mode 100644 (file)
index 0000000..95f3e72
--- /dev/null
+++ b/t1
@@ -0,0 +1 @@
+aaaaaaaaaaaaaa
diff --git a/t2 b/t2
new file mode 100644 (file)
index 0000000..817e5ca
--- /dev/null
+++ b/t2
@@ -0,0 +1 @@
+bbbbbbbbbb