diff options
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); |
