summaryrefslogtreecommitdiff
path: root/build/files.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-07 22:49:45 +0000
committerjbj <devnull@localhost>1999-09-07 22:49:45 +0000
commit6281ee4de1edd2882452f3cc0ddff5e8ab94f222 (patch)
treeac337f333f66859efe8d328e805da15921ee2a68 /build/files.c
parent834db501abf63981c5445edac45af8de278b0777 (diff)
downloadlibrpm-tizen-6281ee4de1edd2882452f3cc0ddff5e8ab94f222.tar.gz
librpm-tizen-6281ee4de1edd2882452f3cc0ddff5e8ab94f222.tar.bz2
librpm-tizen-6281ee4de1edd2882452f3cc0ddff5e8ab94f222.zip
Use sizeof("...")-1 throughout.
CVS patchset: 3268 CVS date: 1999/09/07 22:49:45
Diffstat (limited to 'build/files.c')
-rw-r--r--build/files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/files.c b/build/files.c
index e9b78bff2..7ad538747 100644
--- a/build/files.c
+++ b/build/files.c
@@ -545,9 +545,9 @@ static int parseForLang(char *buf, struct FileList *fl)
np = pe - p;
/* Sanity check on locale lengths */
- if (np < 1 || (np == 1 && *p != 'C') || np >= 16) {
+ if (np < 1 || (np == 1 && *p != 'C') || np >= 32) {
rpmError(RPMERR_BADSPEC, _("Unusual locale length: \"%.*s\" in %%lang(%s)"),
- np, p, q);
+ (int)np, p, q);
fl->processingFailed = 1;
return RPMERR_BADSPEC;
}
@@ -557,7 +557,7 @@ static int parseForLang(char *buf, struct FileList *fl)
if (strncmp(fl->currentLangs[i], p, np))
continue;
rpmError(RPMERR_BADSPEC, _("Duplicate locale %.*s in %%lang(%s)"),
- np, p, q);
+ (int)np, p, q);
fl->processingFailed = 1;
return RPMERR_BADSPEC;
}