diff options
author | Rich Megginson <rmeggins@redhat.com> | 2005-03-05 04:29:24 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2005-03-05 04:29:24 +0000 |
commit | b352660e243c7b9b7d050f1c38cff1c9faf278b1 (patch) | |
tree | ede08019beb931c3206609ab2377a015d510bdb4 /lib/libsi18n | |
parent | f08951680ddfebc3f3df07e720ad0650fe473c0f (diff) | |
download | ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.gz ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.xz ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.zip |
clean up sprintf usage and many other flawfinder issues; clean up compiler warnings on Linux; remove pam_passthru from DS 7.1
Diffstat (limited to 'lib/libsi18n')
-rw-r--r-- | lib/libsi18n/acclanglist.c | 2 | ||||
-rw-r--r-- | lib/libsi18n/makstrdb.c | 3 | ||||
-rw-r--r-- | lib/libsi18n/propset.c | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsi18n/acclanglist.c b/lib/libsi18n/acclanglist.c index 0e9f25a8..2d24f80d 100644 --- a/lib/libsi18n/acclanglist.c +++ b/lib/libsi18n/acclanglist.c @@ -77,7 +77,7 @@ AcceptLangList(const char* AcceptLanguage, cPtr = strtok(input,","); while (cPtr) { qvalue[countLang] = 1.0f; - if (cPtr1 = strchr(cPtr,';')) { + if ((cPtr1 = strchr(cPtr,';'))) { sscanf(cPtr1,";q=%f",&qvalue[countLang]); *cPtr1 = '\0'; } diff --git a/lib/libsi18n/makstrdb.c b/lib/libsi18n/makstrdb.c index 788edfa9..25fe84a9 100644 --- a/lib/libsi18n/makstrdb.c +++ b/lib/libsi18n/makstrdb.c @@ -125,7 +125,6 @@ XP_MakeStringProperties(void) { int j; char* LibraryName; - char* cptr; RESOURCE_TABLE* table; FILE *hresfile; char buffer[2000]; @@ -145,7 +144,7 @@ XP_MakeStringProperties(void) } j = 0; - while (table=allxpstr[j++].restable) { + while ((table=allxpstr[j++].restable)) { LibraryName = table->str; fprintf(hresfile, "\n"); fprintf(hresfile, "#######################################\n"); diff --git a/lib/libsi18n/propset.c b/lib/libsi18n/propset.c index 4f5ab66d..75173a7b 100644 --- a/lib/libsi18n/propset.c +++ b/lib/libsi18n/propset.c @@ -7,6 +7,7 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> +#include <ctype.h> #include "i18n.h" #include "txtfile.h" |