Fix crash in string:copies/2
Fix crash in string:copies/2

Using a float for the number of copies results in an infinite loop.
Check that the argument is an integer.

Reported-By: Eric Pailleau

kvakvs/otp,mikpe/otp,paladim/otp,VincentHHL/otp,uabboli/otp,paulcager/otp,cnbin/otp,erlang/otp,awetzel/otp,isvilen/otp,uabboli/otp,aboroska/otp,jamesruan/otp,cnbin/otp,matwey/otp,bsmr-erlang/otp,paladim/otp,erlang/otp,cobusc/otp,platinumthinker/otp,dgud/otp,psyeugenic/otp,goertzenator/otp,ader1990/otp,lantti/otp,matwey/otp,bjorng/otp,derek121/otp,palas/otp,RJ/otp,release-project/otp,entropiae/otp,erlang/otp,getong/otp,electricimp/otp,lightcyphers/otp,mujiatong/otp,c-rack/otp,release-project/otp,release-project/otp,entropiae/otp,jinshana/otp,marquisthunder/otp,haguenau/otp,potatosalad/otp,saleyn/otp,weisslj/otp,emacsmirror/erlang,bernardd/otp,krishnakumar4a4/otp,kvakvs/otp,getong/otp,bernardd/otp,aboroska/otp,gjaldon/otp,saleyn/otp,lrascao/otp,rlipscombe/otp,sitexa/otp,lemenkov/otp,ferd/otp,bernardd/otp,falkevik/otp,vladdu/otp,jemsbhai/otp,jamesruan/otp,vladdu/otp,legoscia/otp,lrascao/otp,release-project/otp,sammoth-wazoku/otp,c-rack/otp,johanclaesson/otp,basho/otp,sdebnath/otp,vic/otp,Teino1978-Corp/erlang-otp,johanclaesson/otp,platinumthinker/otp,Teino1978-Corp/otp,erlang/otp,sitexa/otp,dgud/otp,matwey/otp,lianghaivv/otp,isvilen/otp,Teino1978-Corp/otp,platinumthinker/otp,bsmr-erlang/otp,vladdu/otp,goertzenator/otp,sitexa/otp,bsmr-erlang/otp,jemsbhai/otp,basho/otp,stolen/otp,vinoski/otp,lhslll/otp,VincentHHL/otp,massemanet/otp,jj1bdx/otp,palas/otp,ahmedshafeeq/otp,GinjaNinja32/otp,legoscia/otp,riverrun/otp,vladdu/otp,g-andrade/otp,entropiae/otp,fenollp/otp,haguenau/otp,basho/otp,hairyhum/otp,entropiae/otp,tuncer/otp,ader1990/otp,uabboli/otp,RGafiyatullin/otp,palas/otp,psyeugenic/otp,beni55/otp,RGafiyatullin/otp,cnbin/otp,cnbin/otp,mikpe/otp,goertzenator/otp,vladdu/otp,Teino1978-Corp/erlang-otp,beni55/otp,c-rack/otp,cobusc/otp,isvilen/otp,goertzenator/otp,g-andrade/otp,matwey/otp,derek121/otp,gjaldon/otp,Teino1978-Corp/otp,rlipscombe/otp,ader1990/otp,massemanet/otp,dumbbell/otp,awetzel/otp,lightcyphers/otp,vinoski/otp,legoscia/otp,paladim/otp,goertzenator/otp,gjaldon/otp,bernardd/otp,platinumthinker/otp,haguenau/otp,benoitc/otp-1,enikki/otp,paladim/otp,matwey/otp,mikpe/otp,enikki/otp,awetzel/otp,lianghaivv/otp,klarna/otp,lucafavatella/otp,msantos/otp,johanclaesson/otp,enikki/otp,RGafiyatullin/otp,psyeugenic/otp,lhslll/otp,msantos/otp,goertzenator/otp,stolen/otp,dumbbell/otp,benoitc/otp-1,riverrun/otp,cnbin/otp,johanclaesson/otp,lightcyphers/otp,lianghaivv/otp,schlagert/otp,isvilen/otp,lrascao/otp,beni55/otp,NOMORECOFFEE/otp,dumbbell/otp,g-andrade/otp,aboroska/otp,dumbbell/otp,psyeugenic/otp,release-project/otp,paladim/otp,electricimp/otp,cnbin/otp,falkevik/otp,c-rack/otp,c-rack/otp,fenollp/otp,emile/otp,electricimp/otp,massemanet/otp,platinumthinker/otp,cobusc/otp,dumbbell/otp,sdebnath/otp,krishnakumar4a4/otp,krishnakumar4a4/otp,lemenkov/otp,schlagert/otp,basho/otp,c-rack/otp,saleyn/otp,RJ/otp,rlipscombe/otp,sitexa/otp,lucafavatella/otp,jemsbhai/otp,vinoski/otp,legoscia/otp,yangchengjian/otp,bsmr-erlang/otp,RaimoNiskanen/otp,riverrun/otp,enikki/otp,matwey/otp,benoitc/otp-1,mujiatong/otp,krishnakumar4a4/otp,beni55/otp,platinumthinker/otp,RoadRunnr/otp,marquisthunder/otp,paulcager/otp,ferd/otp,potatosalad/otp,RaimoNiskanen/otp,benoitc/otp-1,release-project/otp,beni55/otp,hairyhum/otp,enikki/otp,vic/otp,klarna/otp,kvakvs/otp,lemenkov/otp,legoscia/otp,isvilen/otp,gjaldon/otp,goertzenator/otp,rlipscombe/otp,krishnakumar4a4/otp,lhslll/otp,weisslj/otp,bugs-erlang-org/otp,theom/otp,release-project/otp,ahmedshafeeq/otp,falkevik/otp,matwey/otp,GinjaNinja32/otp,ferd/otp,emacsmirror/erlang,VincentHHL/otp,Teino1978-Corp/erlang-otp,rlipscombe/otp,mujiatong/otp,bugs-erlang-org/otp,gjaldon/otp,haguenau/otp,marquisthunder/otp,jinshana/otp,fenollp/otp,ahmedshafeeq/otp,c-rack/otp,awetzel/otp,dumbbell/otp,massemanet/otp,RichMorin/otp,lrascao/otp,saleyn/otp,isvilen/otp,lucafavatella/otp,electricimp/otp,marquisthunder/otp,psyeugenic/otp,matwey/otp,kvakvs/otp,sdebnath/otp,uabboli/otp,bsmr-erlang/otp,Teino1978-Corp/erlang-otp,lrascao/otp,emile/otp,klarna/otp,lantti/otp,johanclaesson/otp,ahmedshafeeq/otp,ader1990/otp,sammoth-wazoku/otp,tuncer/otp,RaimoNiskanen/otp,RJ/otp,lemenkov/otp,RoadRunnr/otp,sitexa/otp,release-project/otp,gjaldon/otp,klarna/otp,riverrun/otp,erlang/otp,weisslj/otp,potatosalad/otp,theom/otp,lhslll/otp,RaimoNiskanen/otp,bernardd/otp,saleyn/otp,ferd/otp,jj1bdx/otp,g-andrade/otp,lhslll/otp,lantti/otp,aboroska/otp,schlagert/otp,g-andrade/otp,g-andrade/otp,sammoth-wazoku/otp,RichMorin/otp,jj1bdx/otp,lianghaivv/otp,entropiae/otp,rlipscombe/otp,bugs-erlang-org/otp,emacsmirror/erlang,benoitc/otp-1,cobusc/otp,tuncer/otp,vinoski/otp,vic/otp,emile/otp,dgud/otp,legoscia/otp,basho/otp,msantos/otp,kvakvs/otp,lrascao/otp,massemanet/otp,RJ/otp,erlang/otp,fenollp/otp,johanclaesson/otp,mikpe/otp,electricimp/otp,gjaldon/otp,rlipscombe/otp,sdebnath/otp,vic/otp,NOMORECOFFEE/otp,electricimp/otp,stolen/otp,potatosalad/otp,goertzenator/otp,RoadRunnr/otp,lightcyphers/otp,paladim/otp,lrascao/otp,potatosalad/otp,johanclaesson/otp,bugs-erlang-org/otp,RGafiyatullin/otp,yangchengjian/otp,erlang/otp,ahmedshafeeq/otp,sdebnath/otp,RoadRunnr/otp,lucafavatella/otp,weisslj/otp,mujiatong/otp,getong/otp,emacsmirror/erlang,legoscia/otp,paulcager/otp,release-project/otp,VincentHHL/otp,falkevik/otp,legoscia/otp,VincentHHL/otp,msantos/otp,VincentHHL/otp,lrascao/otp,jemsbhai/otp,aboroska/otp,massemanet/otp,jj1bdx/otp,RGafiyatullin/otp,bugs-erlang-org/otp,fenollp/otp,mikpe/otp,getong/otp,vladdu/otp,msantos/otp,massemanet/otp,jinshana/otp,ferd/otp,potatosalad/otp,awetzel/otp,yangchengjian/otp,bjorng/otp,hairyhum/otp,aboroska/otp,basho/otp,lianghaivv/otp,RaimoNiskanen/otp,fenollp/otp,cnbin/otp,dumbbell/otp,krishnakumar4a4/otp,yangchengjian/otp,vinoski/otp,awetzel/otp,jamesruan/otp,isvilen/otp,bsmr-erlang/otp,beni55/otp,lianghaivv/otp,getong/otp,jj1bdx/otp,yangchengjian/otp,erlang/otp,beni55/otp,riverrun/otp,isvilen/otp,goertzenator/otp,entropiae/otp,isvilen/otp,platinumthinker/otp,lemenkov/otp,vinoski/otp,lemenkov/otp,jemsbhai/otp,derek121/otp,bjorng/otp,Teino1978-Corp/erlang-otp,RGafiyatullin/otp,derek121/otp,lantti/otp,neeraj9/otp,neeraj9/otp,paulcager/otp,cnbin/otp,dgud/otp,lucafavatella/otp,klarna/otp,emacsmirror/erlang,weisslj/otp,sammoth-wazoku/otp,stolen/otp,massemanet/otp,haguenau/otp,mikpe/otp,jemsbhai/otp,mikpe/otp,bjorng/otp,saleyn/otp,tuncer/otp,weisslj/otp,bernardd/otp,RoadRunnr/otp,bernardd/otp,RaimoNiskanen/otp,emile/otp,RoadRunnr/otp,msantos/otp,kvakvs/otp,falkevik/otp,marquisthunder/otp,theom/otp,stolen/otp,hairyhum/otp,msantos/otp,rlipscombe/otp,falkevik/otp,VincentHHL/otp,jj1bdx/otp,falkevik/otp,haguenau/otp,lightcyphers/otp,mujiatong/otp,RichMorin/otp,uabboli/otp,electricimp/otp,stolen/otp,NOMORECOFFEE/otp,jinshana/otp,lhslll/otp,tuncer/otp,paladim/otp,g-andrade/otp,vinoski/otp,weisslj/otp,schlagert/otp,ahmedshafeeq/otp,paulcager/otp,bugs-erlang-org/otp,potatosalad/otp,marquisthunder/otp,sammoth-wazoku/otp,massemanet/otp,yangchengjian/otp,c-rack/otp,jj1bdx/otp,sdebnath/otp,lemenkov/otp,sammoth-wazoku/otp,dumbbell/otp,NOMORECOFFEE/otp,entropiae/otp,RaimoNiskanen/otp,bjorng/otp,RichMorin/otp,Teino1978-Corp/erlang-otp,neeraj9/otp,vic/otp,jinshana/otp,saleyn/otp,sitexa/otp,paladim/otp,jj1bdx/otp,bjorng/otp,dgud/otp,GinjaNinja32/otp,theom/otp,NOMORECOFFEE/otp,mujiatong/otp,legoscia/otp,Teino1978-Corp/erlang-otp,NOMORECOFFEE/otp,Teino1978-Corp/otp,theom/otp,lightcyphers/otp,cobusc/otp,lantti/otp,bsmr-erlang/otp,kvakvs/otp,benoitc/otp-1,RJ/otp,ader1990/otp,RJ/otp,hairyhum/otp,lucafavatella/otp,beni55/otp,lantti/otp,stolen/otp,msantos/otp,paulcager/otp,ferd/otp,sitexa/otp,ahmedshafeeq/otp,mujiatong/otp,basho/otp,potatosalad/otp,kvakvs/otp,RoadRunnr/otp,lantti/otp,cobusc/otp,palas/otp,dgud/otp,electricimp/otp,haguenau/otp,GinjaNinja32/otp,neeraj9/otp,psyeugenic/otp,bernardd/otp,fenollp/otp,tuncer/otp,matwey/otp,Teino1978-Corp/otp,weisslj/otp,neeraj9/otp,RJ/otp,emile/otp,bjorng/otp,bjorng/otp,theom/otp,lemenkov/otp,sdebnath/otp,g-andrade/otp,sammoth-wazoku/otp,bugs-erlang-org/otp,paulcager/otp,bernardd/otp,awetzel/otp,falkevik/otp,tuncer/otp,emacsmirror/erlang,RichMorin/otp,jinshana/otp,krishnakumar4a4/otp,jamesruan/otp,sdebnath/otp,gjaldon/otp,fenollp/otp,saleyn/otp,derek121/otp,jemsbhai/otp,lhslll/otp,palas/otp,dgud/otp,mujiatong/otp,derek121/otp,basho/otp,lhslll/otp,bsmr-erlang/otp,lantti/otp,mikpe/otp,getong/otp,vic/otp,jemsbhai/otp,uabboli/otp,emile/otp,sammoth-wazoku/otp,neeraj9/otp,vic/otp,RGafiyatullin/otp,jinshana/otp,emacsmirror/erlang,jj1bdx/otp,jamesruan/otp,schlagert/otp,yangchengjian/otp,psyeugenic/otp,bjorng/otp,aboroska/otp,ader1990/otp,vladdu/otp,riverrun/otp,saleyn/otp,psyeugenic/otp,awetzel/otp,RaimoNiskanen/otp,neeraj9/otp,basho/otp,enikki/otp,sitexa/otp,lianghaivv/otp,electricimp/otp,derek121/otp,entropiae/otp,dumbbell/otp,uabboli/otp,RaimoNiskanen/otp,RichMorin/otp,mikpe/otp,tuncer/otp,vic/otp,Teino1978-Corp/erlang-otp,NOMORECOFFEE/otp,cobusc/otp,ahmedshafeeq/otp,erlang/otp,vladdu/otp,emacsmirror/erlang,theom/otp,schlagert/otp,lightcyphers/otp,ader1990/otp,RichMorin/otp,emacsmirror/erlang,dumbbell/otp,palas/otp,klarna/otp,ferd/otp,johanclaesson/otp,bsmr-erlang/otp,jj1bdx/otp,Teino1978-Corp/otp,lucafavatella/otp,getong/otp,jamesruan/otp,GinjaNinja32/otp,platinumthinker/otp,tuncer/otp,riverrun/otp,vinoski/otp,paulcager/otp,uabboli/otp,jamesruan/otp,theom/otp,rlipscombe/otp,emacsmirror/erlang,GinjaNinja32/otp,ferd/otp,benoitc/otp-1,mikpe/otp,lucafavatella/otp,jinshana/otp,weisslj/otp,getong/otp,ferd/otp,RJ/otp,falkevik/otp,lrascao/otp,GinjaNinja32/otp,marquisthunder/otp,yangchengjian/otp,krishnakumar4a4/otp,RichMorin/otp,emile/otp,getong/otp,GinjaNinja32/otp,hairyhum/otp,benoitc/otp-1,aboroska/otp,rlipscombe/otp,erlang/otp,isvilen/otp,vinoski/otp,dgud/otp,RoadRunnr/otp,neeraj9/otp,schlagert/otp,RGafiyatullin/otp,uabboli/otp,derek121/otp,g-andrade/otp,ader1990/otp,klarna/otp,fenollp/otp,dgud/otp,RoadRunnr/otp,vinoski/otp,bjorng/otp,bugs-erlang-org/otp,enikki/otp,ahmedshafeeq/otp,palas/otp,g-andrade/otp,NOMORECOFFEE/otp,VincentHHL/otp,hairyhum/otp,riverrun/otp,klarna/otp,stolen/otp,schlagert/otp,lianghaivv/otp,marquisthunder/otp,lightcyphers/otp,getong/otp,vladdu/otp,emile/otp,emile/otp,Teino1978-Corp/otp,Teino1978-Corp/otp,potatosalad/otp,hairyhum/otp,aboroska/otp,cobusc/otp,haguenau/otp,potatosalad/otp,dgud/otp,kvakvs/otp,palas/otp,enikki/otp,jamesruan/otp