New option in trunk, needs strdupa to be safe, too
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 9 Jan 2008 00:58:22 +0000 (00:58 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 9 Jan 2008 00:58:22 +0000 (00:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97365 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index d4a96f8..3ba0075 100644 (file)
@@ -2816,7 +2816,7 @@ int main(int argc, char *argv[])
                        rungroup = ast_strdupa(optarg);
                        break;
                case 's':
-                       remotesock = optarg;
+                       remotesock = ast_strdupa(optarg);
                        break;
                case '?':
                        exit(1);