summaryrefslogtreecommitdiff
blob: 070e9c019d2666eeddef5367f0eb8d9fa198104e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/watchd.c	2006-02-23 12:33:32.000000000 -0500
+++ b/watchd.c	2006-02-23 12:45:30.000000000 -0500
@@ -176,7 +176,7 @@
 // free(p2tmp);
 
  p2tmp=strchr(p2,0xa);		// Not very nice,
- p2[(int)p2tmp-(int)p2]=0x00;	// but in fact: It works ;)
+ *(p2+(p2tmp-p2))=0x00;		// but in fact: It works ;)
 
  while (p2[0]==' ') {p2++;}       		     // Again, quick and dirty..
  while (p1[strlen(p1)-1]==' ') {p1[strlen(p1)-1]=0;} // Need to say anything?;)