[m-rev.] trivial diff: another bug fix for "view"

Mark Brown dougl at cs.mu.OZ.AU
Fri Nov 2 07:30:59 AEDT 2001


Estimated hours taken: 0.5
Branches: main

trace/mercury_trace_source.c:
	Fix a bug: 'i' had accidentally been used instead of '1'.

Index: trace/mercury_trace_source.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_source.c,v
retrieving revision 1.2
diff -u -r1.2 mercury_trace_source.c
--- trace/mercury_trace_source.c	1 Nov 2001 19:06:46 -0000	1.2
+++ trace/mercury_trace_source.c	1 Nov 2001 20:28:27 -0000
@@ -215,7 +215,7 @@
 	/*
 	** Find the end of the string and append the '.' and pid.
 	*/
-	i = base_len + i + strlen(name + base_len + i);
+	i = base_len + 1 + strlen(name + base_len + 1);
 	sprintf(name + i, ".%ld", (long) getpid());
 #else
 	i = 0;
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list