[asterisk-commits] ctooley: branch ctooley/excel-sip-changes r118299 - /team/ctooley/excel-sip-c...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 27 07:22:16 CDT 2008


Author: ctooley
Date: Tue May 27 07:21:47 2008
New Revision: 118299

URL: http://svn.digium.com/view/asterisk?view=rev&rev=118299
Log:
String replace works

Modified:
    team/ctooley/excel-sip-changes/include/asterisk/strings.h

Modified: team/ctooley/excel-sip-changes/include/asterisk/strings.h
URL: http://svn.digium.com/view/asterisk/team/ctooley/excel-sip-changes/include/asterisk/strings.h?view=diff&rev=118299&r1=118298&r2=118299
==============================================================================
--- team/ctooley/excel-sip-changes/include/asterisk/strings.h (original)
+++ team/ctooley/excel-sip-changes/include/asterisk/strings.h Tue May 27 07:21:47 2008
@@ -741,7 +741,7 @@
 				}
 			}
 		}	
-		buf->str = str_buf;
+		ast_str_set(&buf, 0, "%s", str_buf);
 		return 0;
 	} else {
 		while (str_buf) {
@@ -749,8 +749,7 @@
 			remove_buf = strsep(&str_buf, &replace);
 			ast_str_append(&remove, 0, "%s", remove_buf);
 		} 
-		buf->str = remove->str;
-		buf->used = remove->used;
+		ast_str_set(&buf, 0, "%s", remove->str);
 		return 0;
 	} 
 }




More information about the asterisk-commits mailing list