Changeset 404 for trunk/dll/remap.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/remap.c

    r353 r404  
    1010  06 Aug 05 SHL Renames
    1111  22 Jul 06 SHL Check more run time errors
     12  29 Jul 06 SHL Use xfgets
    1213
    1314***********************************************************************/
     
    1516#define INCL_WIN
    1617#define INCL_DOS
    17 
    1818#include <os2.h>
     19
    1920#include <stdlib.h>
    2021#include <stdio.h>
     
    2324#include <time.h>
    2425#include <share.h>
     26
    2527#include "fm3dll.h"
    2628#include "fm3dlg.h"
     
    7173  fp = xfsopen(s,"r",SH_DENYWR,pszSrcFile,__LINE__);
    7274  if (fp) {
    73     while(x < MAXNUMRES && !feof(fp)) {
    74       if(!fgets(s,sizeof(s),fp))
     75    while (x < MAXNUMRES && !feof(fp)) {
     76      if (!xfgets_bstripcr(s,sizeof(s),fp,pszSrcFile,__LINE__))
    7577        break;
    76       s[sizeof(s) - 1] = 0;
    77       bstripcr(s);
    78       if(*s && *s != ';') {
     78      if (*s && *s != ';') {
    7979        info = xmalloc(sizeof(LINKRES),pszSrcFile,__LINE__);
    8080        if (info) {
Note: See TracChangeset for help on using the changeset viewer.