[Olsr-cvs] olsrd-current/lib/nameservice/src nameservice.c, 1.24, 1.25

Bernd Petrovitsch (spam-protected)
Thu Aug 23 23:01:58 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/lib/nameservice/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29900/lib/nameservice/src

Modified Files:
	nameservice.c 
Log Message:
* Sven-Ola found the use of an uninitialized variable. This is my fix for it.

Index: nameservice.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/nameservice/src/nameservice.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** nameservice.c	2 Jul 2007 10:59:12 -0000	1.24
--- nameservice.c	23 Aug 2007 21:01:56 -0000	1.25
***************
*** 326,332 ****
  	//                 :    port              /path      |(tcp OR udp) |short description
  	//                 :[[:digit:]]+[[:alnum:]/?._=#-]*\\|(tcp|udp)\\|[^|[:cntrl:]]+$";
! 	strcat (strcat (strcat(regex_service, "^[[:alnum:]]+://(([[:alnum:]_.-]+"),
! 		my_suffix),
! 		")|([[:digit:]]{1,3}\\.[[:digit:]]{1,3}\\.[[:digit:]]{1,3}\\.[[:digit:]]{1,3})):[[:digit:]]+[[:alnum:]/?._=#-]*\\|(tcp|udp)\\|[^|[:cntrl:]]+$");
  
  	/* #1: call regcomp() to compile the regex */
--- 326,332 ----
  	//                 :    port              /path      |(tcp OR udp) |short description
  	//                 :[[:digit:]]+[[:alnum:]/?._=#-]*\\|(tcp|udp)\\|[^|[:cntrl:]]+$";
!     strcpy(regex_service, "^[[:alnum:]]+://(([[:alnum:]_.-]+");
!     strcat(regex_service, my_suffix);
! 	strcat(regex_service, ")|([[:digit:]]{1,3}\\.[[:digit:]]{1,3}\\.[[:digit:]]{1,3}\\.[[:digit:]]{1,3})):[[:digit:]]+[[:alnum:]/?._=#-]*\\|(tcp|udp)\\|[^|[:cntrl:]]+$");
  
  	/* #1: call regcomp() to compile the regex */





More information about the Olsr-cvs mailing list