summaryrefslogtreecommitdiffstats
path: root/web/attachments/40524-check_by_ssh.diff
blob: 7ed93fe41d22dd7c2c24e74756f7c3c796ce7467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
*** check_by_ssh.c.orig	Thu Jan 23 23:16:08 2003
--- check_by_ssh.c	Thu Jan 23 23:36:15 2003
***************
*** 256,262 ****
  			while (p2 = index (p1, ':')) {
  				*p2 = '\0';
  				asprintf (&service[services-1], "%s", p1);
! 				service = realloc (service, ++services);
  				p1 = p2 + 1;
  			}
  			asprintf (&service[services-1], "%s", p1);
--- 256,262 ----
  			while (p2 = index (p1, ':')) {
  				*p2 = '\0';
  				asprintf (&service[services-1], "%s", p1);
! 				service = realloc (service, sizeof(char *) * ++services);
  				p1 = p2 + 1;
  			}
  			asprintf (&service[services-1], "%s", p1);