archive_read_support_filter_rpm.c (232153) | archive_read_support_filter_rpm.c (238856) |
---|---|
1/*- 2 * Copyright (c) 2009 Michihiro NAKAJIMA 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 174 unchanged lines hidden (view full) --- 183 } 184 } 185 186 switch (rpm->state) { 187 case ST_LEAD: 188 if (rpm->total_in + avail_in < RPM_LEAD_SIZE) 189 used += avail_in; 190 else { | 1/*- 2 * Copyright (c) 2009 Michihiro NAKAJIMA 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 174 unchanged lines hidden (view full) --- 183 } 184 } 185 186 switch (rpm->state) { 187 case ST_LEAD: 188 if (rpm->total_in + avail_in < RPM_LEAD_SIZE) 189 used += avail_in; 190 else { |
191 n = RPM_LEAD_SIZE - rpm->total_in; | 191 n = (size_t)(RPM_LEAD_SIZE - rpm->total_in); |
192 used += n; 193 b += n; 194 rpm->state = ST_HEADER; 195 rpm->hpos = 0; 196 rpm->hlen = 0; 197 rpm->first_header = 1; 198 } 199 break; --- 89 unchanged lines hidden --- | 192 used += n; 193 b += n; 194 rpm->state = ST_HEADER; 195 rpm->hpos = 0; 196 rpm->hlen = 0; 197 rpm->first_header = 1; 198 } 199 break; --- 89 unchanged lines hidden --- |