Where we use a fixed size char array as a buffer or as a member of a structure, use the sizeof() operator later in the same scope when we need to know the length of the array.
modified libpkg/dns_utils.c
@@ -122,7 +122,7 @@ dns_getsrvinfo(const char *zone)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -134,7 +134,7 @@ dns_getsrvinfo(const char *zone)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -158,7 +158,7 @@ dns_getsrvinfo(const char *zone)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -181,7 +181,7 @@ dns_getsrvinfo(const char *zone)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/fetch.c
@@ -483,7 +483,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -905,7 +905,7 @@ load_repo_files(const char *repodir)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_elf.c
@@ -427,9 +427,9 @@ pkg_analyse_files(struct pkgdb *db, struct pkg *pkg, const char *stage)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -466,7 +466,7 @@ pkg_register_shlibs(struct pkg *pkg, const char *root)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_jobs.c
@@ -1301,7 +1301,7 @@ pkg_jobs_fetch(struct pkg_jobs *j)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_old.c
@@ -68,11 +68,11 @@ pkg_old_load_from_path(struct pkg *pkg, const char *path)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -238,29 +238,29 @@ pkg_register_old(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -297,7 +297,7 @@ pkg_register_old(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -334,14 +334,14 @@ pkg_register_old(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkgdb_repo.c
@@ -197,7 +197,7 @@ file_exists(sqlite3_context *ctx, int argc, sqlite3_value **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/plugins.c
@@ -394,7 +394,7 @@ pkg_plugins_init(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/rcscripts.c
@@ -54,7 +54,7 @@ pkg_start_stop_rc_scripts(struct pkg *pkg, pkg_rc_attr attr)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/update.c
@@ -79,13 +79,13 @@ repo_fetch_remote_tmp(struct pkg_repo *repo, const char *filename, const char *e
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -174,7 +174,7 @@ load_fingerprint(const char *dir, const char *filename)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -281,13 +281,13 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, struct pkg
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -295,13 +295,13 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, struct pkg
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -336,7 +336,7 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, struct pkg
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -349,7 +349,7 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, struct pkg
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -430,7 +430,7 @@ repo_fetch_remote_extract_tmp(struct pkg_repo *repo, const char *filename,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/convert.c
@@ -90,29 +90,29 @@ convert_to_old(const char *pkg_add_dbdir, bool dry_run)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -120,7 +120,7 @@ convert_to_old(const char *pkg_add_dbdir, bool dry_run)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -157,7 +157,7 @@ convert_to_old(const char *pkg_add_dbdir, bool dry_run)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -194,13 +194,13 @@ convert_to_old(const char *pkg_add_dbdir, bool dry_run)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -249,7 +249,7 @@ convert_from_old(const char *pkg_add_dbdir, bool dry_run)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/create.c
@@ -135,7 +135,7 @@ pkg_create_matches(int argc, char **argv, match_t match, pkg_formats fmt,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/utils.c
@@ -588,7 +588,7 @@ print_jobs_summary(struct pkg_jobs *jobs, const char *msg, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -641,7 +641,7 @@ print_jobs_summary(struct pkg_jobs *jobs, const char *msg, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|