summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/package.c2
-rw-r--r--src/pacman/pacman.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 328d5bf6..3b145164 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -84,7 +84,7 @@ void dump_pkg_full(pmpkg_t *pkg, int level)
}
if(level>0) {
- /* compute this here so we don't get a puase in the middle of output */
+ /* compute this here so we don't get a pause in the middle of output */
requiredby = alpm_pkg_compute_requiredby(pkg);
}
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 5298d662..4c556a7d 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -379,7 +379,7 @@ static int parseargs(int argc, char *argv[])
{0, 0, 0, 0}
};
- while((opt = getopt_long(argc, argv, "RUFQSTr:b:vkhscVfmnoldepqituwygz", opts, &option_index))) {
+ while((opt = getopt_long(argc, argv, "RUQSTr:b:vkhscVfmnoldepqituwygz", opts, &option_index))) {
alpm_list_t *list = NULL, *item = NULL; /* lists for splitting strings */
if(opt < 0) {
@@ -437,7 +437,7 @@ static int parseargs(int argc, char *argv[])
config->flags |= PM_TRANS_FLAG_ALLDEPS;
break;
case 1009:
- config->logfile = strdup(optarg);
+ config->logfile = strndup(optarg, PATH_MAX);
break;
case 1010:
list = strsplit(optarg, ',');