Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20974/src/modules/plain

Modified Files:
      Tag: MonetDB_4-20
        str.mx 
Log Message:
fixed off by one error in str.insert


Index: str.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/str.mx,v
retrieving revision 1.3.6.3
retrieving revision 1.3.6.4
diff -u -d -r1.3.6.3 -r1.3.6.4
--- str.mx      18 Dec 2007 09:01:18 -0000      1.3.6.3
+++ str.mx      18 Dec 2007 11:38:00 -0000      1.3.6.4
@@ -207,7 +207,7 @@
        return length(rtrim(s));
 }
 proc insert( str s, int start, int l, str s2 ) : str {
-       return substring(s,start,l) + s2 + substring(s,start+l);
+       return substring(s,0,start) + s2 + string(s,start+l);
 }
 proc replace( str s1, str s2, str s3 ) : str {
        return substitute(s1,s2,s3, true);


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to