[asterisk-commits] eliel: branch eliel/appdelim r181299 - /team/eliel/appdelim/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 11 12:01:07 CDT 2009
Author: eliel
Date: Wed Mar 11 12:01:03 2009
New Revision: 181299
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=181299
Log:
I already know that the buffer is bigger enough (pointed by mmichelson and kpfleming, I need to
listen things twice).
Modified:
team/eliel/appdelim/main/pbx.c
Modified: team/eliel/appdelim/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/team/eliel/appdelim/main/pbx.c?view=diff&rev=181299&r1=181298&r2=181299
==============================================================================
--- team/eliel/appdelim/main/pbx.c (original)
+++ team/eliel/appdelim/main/pbx.c Wed Mar 11 12:01:03 2009
@@ -3275,7 +3275,7 @@
AST_RWLIST_UNLOCK(&apps);
return NULL;
}
- ast_copy_string(ret, cur->syntax, strlen(cur->syntax) + 1);
+ strcpy(ret, cur->syntax);
AST_RWLIST_UNLOCK(&apps);
return ret;
}
@@ -3285,7 +3285,7 @@
if (!(ret = ast_threadstorage_get(&appfun_syntax_buf, strlen(name) + 1))) {
return NULL;
}
- ast_copy_string(ret, name, strlen(name) + 1);
+ strcpy(ret, name);
/* at least return something. */
return ret;
@@ -3303,7 +3303,7 @@
AST_RWLIST_UNLOCK(&acf_root);
return NULL;
}
- ast_copy_string(ret, cur->syntax, strlen(cur->syntax) + 1);
+ strcpy(ret, cur->syntax);
AST_RWLIST_UNLOCK(&acf_root);
return ret;
}
@@ -3313,7 +3313,7 @@
if (!(ret = ast_threadstorage_get(&appfun_syntax_buf, strlen(name) + 1))) {
return NULL;
}
- ast_copy_string(ret, name, strlen(name) + 1);
+ strcpy(ret, name);
/* at least return something. */
return ret;
More information about the asterisk-commits
mailing list