[asterisk-bugs] [Asterisk 0015320]: [patch] CUT() returns empty string for fields other than the 1st

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 18 13:29:53 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15320 
====================================================================== 
Reported By:                chappell
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15320
Category:                   Functions/func_cut
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 200142 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-12 13:31 CDT
Last Modified:              2009-06-18 13:29 CDT
====================================================================== 
Summary:                    [patch] CUT() returns empty string for fields other
than the 1st
Description: 
CUT() in 1.4.X works correctly.  In 1.6.X SVN it does not work due to an
off-by-one error in the code which advances the pointer to the start of the
range.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015208 [patch] The CUT function does not show ...
====================================================================== 

---------------------------------------------------------------------- 
 (0106675) svnbot (reporter) - 2009-06-18 13:29
 https://issues.asterisk.org/view.php?id=15320#c106675 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 201745

U   trunk/funcs/func_cut.c

------------------------------------------------------------------------
r201745 | tilghman | 2009-06-18 13:24:23 -0500 (Thu, 18 Jun 2009) | 7
lines

Clarify CUT code, and in the process, fix a bug in trunk only
(closes issue https://issues.asterisk.org/view.php?id=15320)
 Reported by: chappell
 Patches: 
       cut_fix.patch uploaded by chappell (license 8)
       cut_clarify.patch uploaded by chappell (license 8)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=201745 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-18 13:29 svnbot         Checkin                                      
2009-06-18 13:29 svnbot         Note Added: 0106675                          
======================================================================




More information about the asterisk-bugs mailing list