diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-09 13:37:47 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-09 13:37:47 -0400 |
commit | cadd28072af63a47c4f347126f88d81bd326148a (patch) | |
tree | a9a8b452748f3f24396a7abf60b8ab53351422f7 | |
parent | 35a794c2ed4da7da44d3a04794fc90615e7c52e7 (diff) | |
download | pacman-cadd28072af63a47c4f347126f88d81bd326148a.tar.xz |
be_files.c: Fix compilation bug since I removed unnecessary LOG_STR_LEN
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | lib/libalpm/be_files.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index b338af9d..83b6072c 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -69,6 +69,7 @@ alpm_list_t *_alpm_db_test(pmdb_t *db) { struct dirent *ent; char path[PATH_MAX]; + char text[PATH_MAX+1]; struct stat buf; alpm_list_t *ret = NULL; @@ -79,18 +80,18 @@ alpm_list_t *_alpm_db_test(pmdb_t *db) /* check for desc, depends, and files */ snprintf(path, PATH_MAX, "%s/%s/desc", db->path, ent->d_name); if(stat(path, &buf)) { - snprintf(path, LOG_STR_LEN, _("%s: description file is missing"), ent->d_name); - ret = alpm_list_add(ret, strdup(path)); + snprintf(text, PATH_MAX, _("%s: description file is missing"), ent->d_name); + ret = alpm_list_add(ret, strdup(text)); } snprintf(path, PATH_MAX, "%s/%s/depends", db->path, ent->d_name); if(stat(path, &buf)) { - snprintf(path, LOG_STR_LEN, _("%s: dependency file is missing"), ent->d_name); - ret = alpm_list_add(ret, strdup(path)); + snprintf(text, PATH_MAX, _("%s: dependency file is missing"), ent->d_name); + ret = alpm_list_add(ret, strdup(text)); } snprintf(path, PATH_MAX, "%s/%s/files", db->path, ent->d_name); if(stat(path, &buf)) { - snprintf(path, LOG_STR_LEN, _("%s: file list is missing"), ent->d_name); - ret = alpm_list_add(ret, strdup(path)); + snprintf(text, PATH_MAX, _("%s: file list is missing"), ent->d_name); + ret = alpm_list_add(ret, strdup(text)); } } return(ret); |