move global char array out of thread
move global char array out of thread

The char msg[] is accessed from outside the main thread after it has
exited, so it needs to outlive it.

Fixes #717

authmillenon/RIOT,A-Paul/RIOT,yogo1212/RIOT,mziegert/RIOT,stevenj/RIOT,attdona/RIOT,centurysys/RIOT,binarylemon/RIOT,Osblouf/RIOT,rousselk/RIOT,jremmert-phytec-iot/RIOT,mziegert/RIOT,OlegHahm/RIOT,kaspar030/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,stevenj/RIOT,adjih/RIOT,dhruvvyas90/RIOT,d00616/RIOT,Hyungsin/RIOT-OS,marcosalm/RIOT,mfrey/RIOT,gebart/RIOT,abp719/RIOT,abkam07/RIOT,Hyungsin/RIOT-OS,wentaoshang/RIOT,miri64/RIOT,patkan/RIOT,bartfaizoltan/RIOT,cladmi/RIOT,BytesGalore/RIOT,rfswarm2/RIOT,hamilton-mote/RIOT-OS,malosek/RIOT,Darredevil/RIOT,centurysys/RIOT,Darredevil/RIOT,immesys/RiSyn,thomaseichinger/RIOT,alignan/RIOT,katezilla/RIOT,l3nko/RIOT,automote/RIOT,thiagohd/RIOT,asanka-code/RIOT,AnonMall/RIOT,koenning/RIOT,locicontrols/RIOT,roberthartung/RIOT,sumanpanchal/RIOT,openkosmosorg/RIOT,backenklee/RIOT,AnonMall/RIOT,EmuxEvans/RIOT,jasonatran/RIOT,rousselk/RIOT,ant9000/RIOT,ntrtrung/RIOT,lazytech-org/RIOT,BytesGalore/PetersRIOT,mfrey/RIOT,kb2ma/RIOT,EmuxEvans/RIOT,TobiasFredersdorf/RIOT,hamilton-mote/RIOT-OS,koenning/RIOT,thiagohd/RIOT,gbarnett/RIOT,Hyungsin/RIOT-OS,immesys/RiSyn,LudwigKnuepfer/RIOT,Osblouf/RIOT,daniel-k/RIOT,ntrtrung/RIOT,spium/IoT-RIOT,adrianghc/RIOT,jhollister/RIOT,RubikonAlpha/RIOT,arvindpdmn/RIOT,wentaoshang/RIOT,RIOT-OS/RIOT,jfischer-phytec-iot/RIOT,backenklee/RIOT,gebart/RIOT,kb2ma/RIOT,binarylemon/RIOT,Lotterleben/RIOT,DipSwitch/RIOT,attdona/RIOT,sgso/RIOT,tfar/RIOT,dkm/RIOT,adjih/RIOT,marcosalm/RIOT,malosek/RIOT,watr-li/RIOT,jasonatran/RIOT,kerneltask/RIOT,ximus/RIOT,chris-wood/RIOT,MarkXYang/RIOT,ThanhVic/RIOT,adjih/RIOT,ks156/RIOT,attdona/RIOT,mziegert/RIOT,brettswann/RIOT,lebrush/RIOT,Yonezawa-T2/RIOT,chris-wood/RIOT,alex1818/RIOT,brettswann/RIOT,PSHIVANI/Riot-Code,jbeyerstedt/RIOT-OTA-update,patkan/RIOT,toonst/RIOT,rajma996/RIOT,yogo1212/RIOT,sgso/RIOT,basilfx/RIOT,OlegHahm/RIOT,ximus/RIOT,tdautc19841202/RIOT,ks156/RIOT,herrfz/RIOT,rakendrathapa/RIOT,authmillenon/RIOT,malosek/RIOT,RubikonAlpha/RIOT,josephnoir/RIOT,ros2/ros2_embedded_riot,kYc0o/RIOT,alex1818/RIOT,jhollister/RIOT,Yonezawa-T2/RIOT,alignan/RIOT,openkosmosorg/RIOT,hamilton-mote/RIOT-OS,rakendrathapa/RIOT,changbiao/RIOT,fnack/RIOT,OlegHahm/RIOT,LudwigKnuepfer/RIOT,A-Paul/RIOT,mtausig/RIOT,asanka-code/RIOT,abkam07/RIOT,kYc0o/RIOT,aeneby/RIOT,plushvoxel/RIOT,dailab/RIOT,attdona/RIOT,sgso/RIOT,kaleb-himes/RIOT,TobiasFredersdorf/RIOT,rakendrathapa/RIOT,lazytech-org/RIOT,herrfz/RIOT-old,FrancescoErmini/RIOT,herrfz/RIOT-old,luciotorre/RIOT,dkm/RIOT,mtausig/RIOT,ximus/RIOT,latsku/RIOT,sumanpanchal/RIOT,abp719/RIOT,tfar/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,marcosalm/RIOT,watr-li/RIOT,Lotterleben/RIOT,A-Paul/RIOT,phiros/RIOT,gautric/RIOT,ximus/RIOT,kushalsingh007/RIOT,neiljay/RIOT,sumanpanchal/RIOT,RubikonAlpha/RIOT,BytesGalore/PetersRIOT,altairpearl/RIOT,Ell-i/RIOT,jfischer-phytec-iot/RIOT,RBartz/RIOT,dhruvvyas90/RIOT,gbarnett/RIOT,miri64/RIOT,lazytech-org/RIOT,fnack/RIOT,plushvoxel/RIOT,khhhh/RIOT,jremmert-phytec-iot/RIOT,jfischer-phytec-iot/RIOT,kYc0o/RIOT,MonsterCode8000/RIOT,alex1818/RIOT,cladmi/RIOT,sgso/RIOT,ks156/RIOT,stevenj/RIOT,authmillenon/RIOT,gebart/RIOT,robixnai/RIOT,Darredevil/RIOT,luciotorre/RIOT,Lexandro92/RIOT-CoAP,binarylemon/RIOT,RIOT-OS/RIOT,khhhh/RIOT,lazytech-org/RIOT,EmuxEvans/RIOT,Osblouf/RIOT,marcosalm/RIOT,benoit-canet/RIOT,adrianghc/RIOT,emmanuelsearch/RIOT,wentaoshang/RIOT,brettswann/RIOT,LudwigOrtmann/RIOT,hamilton-mote/RIOT-OS,khhhh/RIOT,rfswarm2/RIOT,biboc/RIOT,dkm/RIOT,x3ro/RIOT,ros2/ros2_embedded_riot,smlng/RIOT,RubikonAlpha/RIOT,abp719/RIOT,DipSwitch/RIOT,neiljay/RIOT,roberthartung/RIOT,rfswarm/RIOT,syin2/RIOT,EmuxEvans/RIOT,abkam07/RIOT,rfswarm/RIOT,asanka-code/RIOT,centurysys/RIOT,MonsterCode8000/RIOT,BytesGalore/RIOT,sumanpanchal/RIOT,thomaseichinger/RIOT,gautric/RIOT,yogo1212/RIOT,haoyangyu/RIOT,jbeyerstedt/RIOT-OTA-update,emmanuelsearch/RIOT,immesys/RiSyn,Ell-i/RIOT,immesys/RiSyn,spium/IoT-RIOT,JensErdmann/RIOT,jremmert-phytec-iot/RIOT,locicontrols/RIOT,abp719/RIOT,spium/IoT-RIOT,l3nko/RIOT,bartfaizoltan/RIOT,herrfz/RIOT-old,wentaoshang/RIOT,aeneby/RIOT,MonsterCode8000/RIOT,Yonezawa-T2/RIOT,jhollister/RIOT,toonst/RIOT,MohmadAyman/RIOT,BytesGalore/RIOT,rakendrathapa/RIOT,khhhh/RIOT,ant9000/RIOT,immesys/RiSyn,openkosmosorg/RIOT,gautric/RIOT,Yonezawa-T2/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,smlng/RIOT,fnack/RIOT,latsku/RIOT,gbarnett/RIOT,changbiao/RIOT,kushalsingh007/RIOT,mtausig/RIOT,shady33/RIOT,thiagohd/RIOT,koenning/RIOT,gbarnett/RIOT,ros2/ros2_embedded_riot,Ell-i/RIOT,RIOT-OS/RIOT,LudwigKnuepfer/RIOT,kaspar030/RIOT,locicontrols/RIOT,BytesGalore/RIOT,adrianghc/RIOT,herrfz/RIOT,mziegert/RIOT,beurdouche/RIOT,bartfaizoltan/RIOT,luciotorre/RIOT,OTAkeys/RIOT,centurysys/RIOT,tfar/RIOT,kb2ma/RIOT,patkan/RIOT,dailab/RIOT,tfar/RIOT,marcosalm/RIOT,ximus/RIOT,kushalsingh007/RIOT,d00616/RIOT,jferreir/RIOT,authmillenon/RIOT,centurysys/RIOT,dhruvvyas90/RIOT,altairpearl/RIOT,latsku/RIOT,josephnoir/RIOT,openkosmosorg/RIOT,plushvoxel/RIOT,binarylemon/RIOT,jremmert-phytec-iot/RIOT,malosek/RIOT,watr-li/RIOT,authmillenon/RIOT,ant9000/RIOT,msolters/RIOT,daniel-k/RIOT,ks156/RIOT,Lexandro92/RIOT-CoAP,patkan/RIOT,neumodisch/RIOT,rajma996/RIOT,DipSwitch/RIOT,Ell-i/RIOT,robixnai/RIOT,alignan/RIOT,rakendrathapa/RIOT,mfrey/RIOT,kushalsingh007/RIOT,gbarnett/RIOT,thomaseichinger/RIOT,brettswann/RIOT,locicontrols/RIOT,BytesGalore/PetersRIOT,MarkXYang/RIOT,automote/RIOT,Josar/RIOT,tdautc19841202/RIOT,arvindpdmn/RIOT,changbiao/RIOT,aeneby/RIOT,herrfz/RIOT,AnonMall/RIOT,phiros/RIOT,toonst/RIOT,1blankz7/RIOT,jfischer-phytec-iot/RIOT,FrancescoErmini/RIOT,dhruvvyas90/RIOT,lebrush/RIOT,BytesGalore/PetersRIOT,LudwigOrtmann/RIOT,jasonatran/RIOT,luciotorre/RIOT,benoit-canet/RIOT,dkm/RIOT,mziegert/RIOT,ThanhVic/RIOT,zhuoshuguo/RIOT,binarylemon/RIOT,TobiasFredersdorf/RIOT,automote/RIOT,kaleb-himes/RIOT,LudwigOrtmann/RIOT,JensErdmann/RIOT,msolters/RIOT,thiagohd/RIOT,tdautc19841202/RIOT,Lotterleben/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,JensErdmann/RIOT,bartfaizoltan/RIOT,l3nko/RIOT,kaleb-himes/RIOT,dailab/RIOT,alex1818/RIOT,automote/RIOT,binarylemon/RIOT,attdona/RIOT,Yonezawa-T2/RIOT,d00616/RIOT,backenklee/RIOT,watr-li/RIOT,wentaoshang/RIOT,TobiasFredersdorf/RIOT,kbumsik/RIOT,beurdouche/RIOT,changbiao/RIOT,abp719/RIOT,alex1818/RIOT,basilfx/RIOT,katezilla/RIOT,l3nko/RIOT,1blankz7/RIOT,d00616/RIOT,malosek/RIOT,syin2/RIOT,dkm/RIOT,stevenj/RIOT,kaspar030/RIOT,OlegHahm/RIOT,rfswarm2/RIOT,rfswarm/RIOT,herrfz/RIOT-old,RBartz/RIOT,ThanhVic/RIOT,locicontrols/RIOT,jfischer-phytec-iot/RIOT,changbiao/RIOT,LudwigOrtmann/RIOT,Lexandro92/RIOT-CoAP,AnonMall/RIOT,koenning/RIOT,locicontrols/RIOT,automote/RIOT,adrianghc/RIOT,x3ro/RIOT,Lotterleben/RIOT,emmanuelsearch/RIOT,tdautc19841202/RIOT,rfuentess/RIOT,attdona/RIOT,authmillenon/RIOT,altairpearl/RIOT,neiljay/RIOT,jferreir/RIOT,1blankz7/RIOT,Josar/RIOT,Lotterleben/RIOT,Josar/RIOT,fnack/RIOT,MohmadAyman/RIOT,BytesGalore/PetersRIOT,mtausig/RIOT,avmelnikoff/RIOT,DipSwitch/RIOT,MonsterCode8000/RIOT,benoit-canet/RIOT,smlng/RIOT,zhuoshuguo/RIOT,x3ro/RIOT,alignan/RIOT,adjih/RIOT,rfswarm2/RIOT,mtausig/RIOT,avmelnikoff/RIOT,herrfz/RIOT,ntrtrung/RIOT,emmanuelsearch/RIOT,basilfx/RIOT,herrfz/RIOT,shady33/RIOT,MarkXYang/RIOT,neumodisch/RIOT,syin2/RIOT,latsku/RIOT,JensErdmann/RIOT,RubikonAlpha/RIOT,jremmert-phytec-iot/RIOT,phiros/RIOT,khhhh/RIOT,Yonezawa-T2/RIOT,PSHIVANI/Riot-Code,spium/IoT-RIOT,lebrush/RIOT,avmelnikoff/RIOT,yogo1212/RIOT,sgso/RIOT,aeneby/RIOT,wentaoshang/RIOT,nsol-nmsu/RIOT,miri64/RIOT,robixnai/RIOT,kbumsik/RIOT,phiros/RIOT,immesys/RiSyn,cladmi/RIOT,msolters/RIOT,Osblouf/RIOT,changbiao/RIOT,sgso/RIOT,OlegHahm/RIOT,OTAkeys/RIOT,daniel-k/RIOT,abkam07/RIOT,TobiasFredersdorf/RIOT,nsol-nmsu/RIOT,rajma996/RIOT,jhollister/RIOT,thomaseichinger/RIOT,haoyangyu/RIOT,chris-wood/RIOT,toonst/RIOT,shady33/RIOT,nsol-nmsu/RIOT,RIOT-OS/RIOT,robixnai/RIOT,lebrush/RIOT,beurdouche/RIOT,asanka-code/RIOT,abkam07/RIOT,Osblouf/RIOT,gautric/RIOT,shady33/RIOT,FrancescoErmini/RIOT,bartfaizoltan/RIOT,neiljay/RIOT,mfrey/RIOT,neumodisch/RIOT,roberthartung/RIOT,ks156/RIOT,dhruvvyas90/RIOT,kerneltask/RIOT,LudwigOrtmann/RIOT,msolters/RIOT,kb2ma/RIOT,Lotterleben/RIOT,biboc/RIOT,OTAkeys/RIOT,gebart/RIOT,RBartz/RIOT,ros2/ros2_embedded_riot,stevenj/RIOT,jasonatran/RIOT,ant9000/RIOT,1blankz7/RIOT,Josar/RIOT,beurdouche/RIOT,biboc/RIOT,ximus/RIOT,smlng/RIOT,robixnai/RIOT,kbumsik/RIOT,ros2/ros2_embedded_riot,A-Paul/RIOT,LudwigKnuepfer/RIOT,phiros/RIOT,neumodisch/RIOT,roberthartung/RIOT,basilfx/RIOT,EmuxEvans/RIOT,x3ro/RIOT,Lotterleben/RIOT,tdautc19841202/RIOT,jbeyerstedt/RIOT-OTA-update,gbarnett/RIOT,LudwigOrtmann/RIOT,zhuoshuguo/RIOT,kushalsingh007/RIOT,nsol-nmsu/RIOT,daniel-k/RIOT,cladmi/RIOT,Darredevil/RIOT,mziegert/RIOT,ntrtrung/RIOT,AnonMall/RIOT,JensErdmann/RIOT,malosek/RIOT,BytesGalore/PetersRIOT,rfswarm/RIOT,beurdouche/RIOT,rousselk/RIOT,miri64/RIOT,cladmi/RIOT,rajma996/RIOT,BytesGalore/PetersRIOT,brettswann/RIOT,Lexandro92/RIOT-CoAP,watr-li/RIOT,jasonatran/RIOT,luciotorre/RIOT,katezilla/RIOT,emmanuelsearch/RIOT,centurysys/RIOT,plushvoxel/RIOT,yogo1212/RIOT,MarkXYang/RIOT,rfswarm2/RIOT,Darredevil/RIOT,haoyangyu/RIOT,haoyangyu/RIOT,neumodisch/RIOT,dhruvvyas90/RIOT,kaleb-himes/RIOT,DipSwitch/RIOT,adrianghc/RIOT,OTAkeys/RIOT,sumanpanchal/RIOT,DipSwitch/RIOT,benoit-canet/RIOT,AnonMall/RIOT,d00616/RIOT,luciotorre/RIOT,thiagohd/RIOT,syin2/RIOT,nsol-nmsu/RIOT,dailab/RIOT,patkan/RIOT,kbumsik/RIOT,fnack/RIOT,zhuoshuguo/RIOT,lebrush/RIOT,kaleb-himes/RIOT,jferreir/RIOT,rfuentess/RIOT,backenklee/RIOT,OTAkeys/RIOT,l3nko/RIOT,altairpearl/RIOT,x3ro/RIOT,rousselk/RIOT,katezilla/RIOT,spium/IoT-RIOT,zhuoshuguo/RIOT,rfswarm2/RIOT,l3nko/RIOT,chris-wood/RIOT,syin2/RIOT,jbeyerstedt/RIOT-OTA-update,smlng/RIOT,emmanuelsearch/RIOT,chris-wood/RIOT,FrancescoErmini/RIOT,arvindpdmn/RIOT,kbumsik/RIOT,abp719/RIOT,rajma996/RIOT,kushalsingh007/RIOT,aeneby/RIOT,kYc0o/RIOT,spium/IoT-RIOT,ntrtrung/RIOT,MarkXYang/RIOT,asanka-code/RIOT,biboc/RIOT,lazytech-org/RIOT,plushvoxel/RIOT,jhollister/RIOT,alignan/RIOT,A-Paul/RIOT,rajma996/RIOT,arvindpdmn/RIOT,yogo1212/RIOT,PSHIVANI/Riot-Code,benoit-canet/RIOT,sumanpanchal/RIOT,Ell-i/RIOT,josephnoir/RIOT,ros2/ros2_embedded_riot,FrancescoErmini/RIOT,roberthartung/RIOT,automote/RIOT,rakendrathapa/RIOT,gautric/RIOT,kerneltask/RIOT,FrancescoErmini/RIOT,d00616/RIOT,asanka-code/RIOT,adjih/RIOT,MohmadAyman/RIOT,ThanhVic/RIOT,arvindpdmn/RIOT,daniel-k/RIOT,arvindpdmn/RIOT,jferreir/RIOT,tdautc19841202/RIOT,PSHIVANI/Riot-Code,herrfz/RIOT-old,watr-li/RIOT,patkan/RIOT,locicontrols/RIOT,thiagohd/RIOT,stevenj/RIOT,jremmert-phytec-iot/RIOT,kerneltask/RIOT,rousselk/RIOT,josephnoir/RIOT,chris-wood/RIOT,thomaseichinger/RIOT,mfrey/RIOT,latsku/RIOT,LudwigKnuepfer/RIOT,RIOT-OS/RIOT,katezilla/RIOT,kerneltask/RIOT,kYc0o/RIOT,Hyungsin/RIOT-OS,Darredevil/RIOT,kaspar030/RIOT,brettswann/RIOT,biboc/RIOT,msolters/RIOT,miri64/RIOT,basilfx/RIOT,marcosalm/RIOT,Lexandro92/RIOT-CoAP,bartfaizoltan/RIOT,1blankz7/RIOT,PSHIVANI/Riot-Code,1blankz7/RIOT,latsku/RIOT,hamilton-mote/RIOT-OS,dailab/RIOT,jferreir/RIOT,RBartz/RIOT,ant9000/RIOT,Osblouf/RIOT,neumodisch/RIOT,MohmadAyman/RIOT,Lexandro92/RIOT-CoAP,rfswarm/RIOT,rfuentess/RIOT,phiros/RIOT,jhollister/RIOT,RBartz/RIOT,Hyungsin/RIOT-OS,MonsterCode8000/RIOT,kaspar030/RIOT,MonsterCode8000/RIOT,MohmadAyman/RIOT,Josar/RIOT,shady33/RIOT,altairpearl/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,JensErdmann/RIOT,robixnai/RIOT,abkam07/RIOT,jferreir/RIOT,avmelnikoff/RIOT,altairpearl/RIOT,openkosmosorg/RIOT,shady33/RIOT,RubikonAlpha/RIOT,BytesGalore/RIOT,ThanhVic/RIOT,haoyangyu/RIOT,koenning/RIOT,rfuentess/RIOT,lebrush/RIOT,RBartz/RIOT,fnack/RIOT,kb2ma/RIOT,josephnoir/RIOT,ros2/ros2_embedded_riot,khhhh/RIOT,MarkXYang/RIOT,backenklee/RIOT,benoit-canet/RIOT,zhuoshuguo/RIOT,tfar/RIOT,avmelnikoff/RIOT,rfswarm/RIOT,jbeyerstedt/RIOT-OTA-update,openkosmosorg/RIOT,msolters/RIOT,daniel-k/RIOT,EmuxEvans/RIOT,PSHIVANI/Riot-Code,herrfz/RIOT,haoyangyu/RIOT,alex1818/RIOT,neiljay/RIOT,rfuentess/RIOT,MohmadAyman/RIOT,toonst/RIOT,gebart/RIOT,ThanhVic/RIOT,ntrtrung/RIOT,koenning/RIOT,rousselk/RIOT