Ignore:
Timestamp:
Sep 21, 2011, 6:17:52 PM (14 years ago)
Author:
cmv
Message:

fichiers de Xephem 3.7.5 update, cmv 21/09/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/dbfmt.c

    r3654 r4017  
    1313int get_fields (char *s, int delim, char *fields[]);
    1414
    15 #define MAXDBLINE       256     /* longest allowed db line */
     15#define MAXDBLINE       512     /* longest allowed db line */
    1616
    1717#define FLDSEP          ','     /* major field separator */
     
    7474
    7575        /* do all the parsing on a copy */
    76         (void) strcpy (copy, s);
     76        (void) strncpy (copy, s, MAXDBLINE-1);
     77        copy[MAXDBLINE-1] = '\0';
    7778        i = strlen(copy);
    7879        if (copy[i-1] == '\n')
     
    10261027
    10271028/* For RCS Only -- Do Not Edit */
    1028 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2009-07-16 10:34:36 $ $Revision: 1.9 $ $Name: not supported by cvs2svn $"};
     1029static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2011-09-21 16:17:48 $ $Revision: 1.10 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.