[Mplayer-cvslog] CVS: main cfgparser.c,1.11,1.12
Szabolcs Berecz
szabii at users.sourceforge.net
Wed Mar 21 03:56:08 CET 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv17398
Modified Files:
cfgparser.c
Log Message:
fix...
Index: cfgparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/cfgparser.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** cfgparser.c 2001/03/20 22:55:50 1.11
--- cfgparser.c 2001/03/21 02:56:06 1.12
***************
*** 229,234 ****
FILE *fp;
char *line;
! char opt[MAX_OPT_LEN];
! char param[MAX_PARAM_LEN];
char c; /* for the "" and '' check */
int tmp;
--- 229,234 ----
FILE *fp;
char *line;
! char opt[MAX_OPT_LEN + 1];
! char param[MAX_PARAM_LEN + 1];
char c; /* for the "" and '' check */
int tmp;
***************
*** 244,247 ****
--- 244,248 ----
if (++recursion_depth > MAX_RECURSION_DEPTH) {
printf("too deep 'include'. check your configfiles\n");
+ --recursion_depth;
return -1;
}
***************
*** 254,258 ****
}
! if ((line = (char *) malloc(MAX_LINE_LEN)) == NULL) {
perror("parse_config_file: can't get memory for 'line'");
ret = -1;
--- 255,259 ----
}
! if ((line = (char *) malloc(MAX_LINE_LEN + 1)) == NULL) {
perror("parse_config_file: can't get memory for 'line'");
ret = -1;
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list