Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWill authored and ffesti committed Jan 28, 2023
1 parent b3adc8c commit a9ac172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpmdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ static char * mireDup(rpmTagVal tag, rpmMireMode *modep,
nb = strlen(pattern) + sizeof("^$");

/* Find no. of bytes needed for pattern. */
/* periods and plusses are escaped, splats become '.*' */
/* periods, plusses and carets are escaped, splats become '.*' */
c = '\0';
brackets = 0;
for (s = pattern; *s != '\0'; s++) {
Expand Down Expand Up @@ -1127,7 +1127,7 @@ static char * mireDup(rpmTagVal tag, rpmMireMode *modep,

if (pattern[0] != '^') *t++ = '^';

/* Copy pattern, escaping periods, prefixing splats with period. */
/* Copy pattern, escaping periods, plusses and carets, and prefixing splats with period. */
c = '\0';
brackets = 0;
for (s = pattern; *s != '\0'; s++, t++) {
Expand Down

0 comments on commit a9ac172

Please sign in to comment.