From a9ac1727a637e24c27570daeb045651cc1b8f45f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 28 Jan 2023 12:28:51 +0800 Subject: [PATCH] Update comments --- lib/rpmdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 61a40166ad..b51e9f09e8 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -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++) { @@ -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++) {