Changeset 4017 in Sophya for trunk/SophyaExt/XephemAstroLib/dbfmt.c
- Timestamp:
- Sep 21, 2011, 6:17:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/XephemAstroLib/dbfmt.c
r3654 r4017 13 13 int get_fields (char *s, int delim, char *fields[]); 14 14 15 #define MAXDBLINE 256/* longest allowed db line */15 #define MAXDBLINE 512 /* longest allowed db line */ 16 16 17 17 #define FLDSEP ',' /* major field separator */ … … 74 74 75 75 /* do all the parsing on a copy */ 76 (void) strcpy (copy, s); 76 (void) strncpy (copy, s, MAXDBLINE-1); 77 copy[MAXDBLINE-1] = '\0'; 77 78 i = strlen(copy); 78 79 if (copy[i-1] == '\n') … … 1026 1027 1027 1028 /* For RCS Only -- Do Not Edit */ 1028 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 20 09-07-16 10:34:36 $ $Revision: 1.9$ $Name: not supported by cvs2svn $"};1029 static 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.