diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-03-27 21:18:20 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-03-27 21:18:20 +0100 |
commit | 3cf77d19bd7f3abd323e4f148f73575cee8ac85b (patch) | |
tree | 145f4d97eef00fe3691ad4276d5d1b267b74364b /qpkg.c | |
parent | configure: ignore expansion undefined warnings for gnulib (diff) | |
download | portage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.tar.gz portage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.tar.bz2 portage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.zip |
q: fix various issues on Linux systems
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qpkg.c')
-rw-r--r-- | qpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ qpkg_clean_dir(char *dirp, set *vdb) set *ll = NULL; struct dirent **fnames; int i, count; - char buf[_Q_PATH_MAX]; + char buf[_Q_PATH_MAX * 2]; struct stat st; uint64_t num_all_bytes = 0; size_t disp_units = 0; @@ -186,7 +186,7 @@ qpkg_clean(char *dirp) num_all_bytes = qpkg_clean_dir(dirp, vdb); for (i = 0; i < count; i++) { - char buf[_Q_PATH_MAX]; + char buf[_Q_PATH_MAX * 2]; snprintf(buf, sizeof(buf), "%s/%s", dirp, dnames[i]->d_name); num_all_bytes += qpkg_clean_dir(buf, vdb); } |