Changeset 2980


Ignore:
Timestamp:
Sep 6, 2007, 4:28:24 PM (14 years ago)
Author:
charles
Message:

(trunk) fix a nasty width truncation bug, reported by Eric in http://transmission.m0k.org/forum/viewtopic.php?t=2304&start=16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r2962 r2980  
    126126    else if (fstat (fd, &sb) ) /* how big is the file? */
    127127        ret = tr_ioErrorFromErrno ();
    128     else if ((size_t)sb.st_size >= minSize) /* already big enough */
     128    else if (sb.st_size >= (off_t)minSize) /* already big enough */
    129129        ret = TR_OK;
    130130    else if (!ftruncate( fd, minSize )) /* grow it */
Note: See TracChangeset for help on using the changeset viewer.