[m-dev.] diff: final change to mercury_string.c

Peter Ross peter.ross at miscrit.be
Thu Aug 10 19:36:10 AEST 2000


Hi,

Someone please press my reboot button.


===================================================================


Estimated hours taken: 0.1

runtime/mercury_string.c:
    Remove a cast to (char *).


Index: mercury_string.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_string.c,v
retrieving revision 1.3
diff -u -r1.3 mercury_string.c
--- mercury_string.c	2000/08/10 09:31:22	1.3
+++ mercury_string.c	2000/08/10 09:35:00
@@ -56,7 +56,7 @@
 	      
 	MR_allocate_aligned_string_msg(result, strlen(p),
 			proclabel);
-	strcpy((char *) result, p);
+	strcpy(result, p);
 
 #ifdef HAVE_VSNPRINTF
 	MR_free(p);

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list