index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2009-09-26 00:58:42 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-11 15:12:20 -0500 |
commit | caea098c2191a2d94a28e90bfef958c34473a5a4 (patch) | |
tree | f27ec0455b22930ae74ee6eb4386eef6e2d9a447 /lib/libalpm/be_files.c | |
parent | 35bbc96b99a8f9c8534b20d0ff7a30526b7d957d (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 4 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 21533ef2..51492d52 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -495,7 +495,7 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } _alpm_strtrim(line); - char first = tolower(line[0]); + char first = tolower((unsigned char)line[0]); if(first > 'a' && first < 'z') { struct tm tmp_tm = {0}; /* initialize to null in case of failure */ setlocale(LC_TIME, "C"); @@ -511,7 +511,7 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } _alpm_strtrim(line); - char first = tolower(line[0]); + char first = tolower((unsigned char)line[0]); if(first > 'a' && first < 'z') { struct tm tmp_tm = {0}; /* initialize to null in case of failure */ setlocale(LC_TIME, "C"); |