Changeset 404 for trunk/dll/uudecode.c


Ignore:
Timestamp:
Jul 29, 2006, 10:01:14 PM (19 years ago)
Author:
root
Message:

Use xfgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/uudecode.c

    r382 r404  
    1212  06 Jun 05 SHL Drop unused code
    1313  17 Jul 06 SHL Use Runtime_Error
     14  29 Jul 06 SHL Use xfgets
    1415
    1516***********************************************************************/
     
    6364  for (;;)
    6465  {
    65     if (!fgets(buf, sizeof(buf), in))
    66     {
     66    if (!xfgets(buf, sizeof(buf), in,pszSrcFile,__LINE__)) {
    6767      fclose(in);
    6868      saymsg(MB_CANCEL,
     
    7373      return ret;
    7474    }
    75     buf[sizeof(buf) - 1] = 0;
    7675    if (!strncmp(buf, "begin ", 6))
    7776      break;
     
    119118  decode(in, out);
    120119
    121   fgets(buf, sizeof(buf), in);
     120  xfgets(buf, sizeof(buf), in,pszSrcFile,__LINE__);
    122121
    123122  fclose(in);
     
    138137  {
    139138    /* for each input line */
    140     if (!fgets(buf, sizeof(buf), in))
     139    if (!xfgets(buf, sizeof(buf), in,pszSrcFile,__LINE__))
    141140      return FALSE;
    142     buf[sizeof(buf) - 1] = 0;
    143141    n = DEC(buf[0]);
    144142    if (n <= 0)
Note: See TracChangeset for help on using the changeset viewer.