diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-05-02 20:54:23 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-05-02 20:54:23 +0200 |
| commit | 3731ed237f1c983000f07ad585e82f603db69ccd (patch) | |
| tree | 4cbba62777b2ffdf17d539bad76b7496c880dee5 /main.c | |
| parent | 29410e3943e3e0da6279708d19b4459578b49f5d (diff) | |
fixed broken queries
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,10 +34,10 @@ int main(int argc, char **argv) args_e target; target = str2enum(argv[2]); entry_t *entry = malloc(sizeof(entry_t)); - entry->name = malloc(128 * sizeof(char)); - entry->author = malloc(64 * sizeof(char)); - entry->value = malloc(16 * sizeof(char)); - entry->status = malloc(16 * sizeof(char)); + entry->name = malloc(MAX_NAME_LEN); + entry->author = malloc(MAX_AUTHOR_LEN); + entry->value = malloc(MAX_VALUE_LEN); + entry->status = malloc(MAX_STATUS_LEN); char fullpath[PATH_MAX]; snprintf(fullpath, PATH_MAX, "%s/%s/%s", getenv("HOME"), filepath, filename); |
