svn commit: samba r21419 - in
branches/SAMBA_4_0/source/scripting/ejs: .
idra at samba.org
idra at samba.org
Sun Feb 18 02:21:22 GMT 2007
Author: idra
Date: 2007-02-18 02:21:21 +0000 (Sun, 18 Feb 2007)
New Revision: 21419
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21419
Log:
Give some more clue about what's going on
Modified:
branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c 2007-02-18 02:12:50 UTC (rev 21418)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c 2007-02-18 02:21:21 UTC (rev 21419)
@@ -185,7 +185,7 @@
length = strlen(orig);
if (start_offset < 0) start_offset += strlen(orig);
if (start_offset < 0 || start_offset > strlen(orig)) {
- ejsSetErrorMsg(eid, "substr arg 2 out of bounds");
+ ejsSetErrorMsg(eid, "substr arg 2 out of bounds ([%s], %d)", orig, start_offset);
return -1;
}
@@ -193,7 +193,7 @@
length = mprToInt(argv[2]);
if (length < 0) length += strlen(orig) - start_offset;
if (length < 0 || length+start_offset > strlen(orig)) {
- ejsSetErrorMsg(eid, "substr arg 3 out of bounds");
+ ejsSetErrorMsg(eid, "substr arg 3 out of bounds ([%s], %d, %d)", orig, start_offset, length);
return -1;
}
}
More information about the samba-cvs
mailing list