Ignore:
Timestamp:
Jun 15, 2008, 8:41:09 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix cucul_file_read() calls in cacaview.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/common-image.c

    r2427 r2436  
    275275{
    276276    uint8_t buffer[4];
    277     cucul_file_read(buffer, 4, 1, f);
     277    cucul_file_read(f, buffer, 4);
    278278    return ((unsigned int)buffer[3] << 24) | ((unsigned int)buffer[2] << 16)
    279279             | ((unsigned int)buffer[1] << 8) | ((unsigned int)buffer[0]);
     
    283283{
    284284    uint8_t buffer[2];
    285     cucul_file_read(buffer, 2, 1, f);
     285    cucul_file_read(f, buffer, 2);
    286286    return ((unsigned int)buffer[1] << 8) | ((unsigned int)buffer[0]);
    287287}
     
    290290{
    291291    uint8_t buffer;
    292     cucul_file_read(&buffer, 1, 1, f);
     292    cucul_file_read(f, &buffer, 1);
    293293    return (unsigned int)buffer;
    294294}
Note: See TracChangeset for help on using the changeset viewer.