phyp: refactor phypListDomainsGeneric to eliminate buffer overflow
phyp: refactor phypListDomainsGeneric to eliminate buffer overflow

src/phyp/phyp_driver.c:phypListDomainsGeneric was crashing due to a buffer
overflow if any line returned from virRun wasn't <=10 characters.

Since virStrToLong_i recognizes any non-numeric as a terminator (not
just NULL), there actually is no need to copy the number into a
separate string anyway, so this patch eliminates that copy, the fixed
length buffer, and therefore the potential to overflow.

This change also provided the oppurtunity to eliminate the character
counting loop, instead using the return from virStrToLong_i to point
past the end of the number, then simply skip the \n to get to the
next.

siboulet/libvirt-openvz,jardasgit/libvirt,usc-isi/libvirt,zhlcindy/libvirt-1.1.4-maintain,foomango/libvirt,rbu/libvirt,trainstack/libvirt,warewolf/libvirt,olafhering/libvirt,fabianfreyer/libvirt,usc-isi/libvirt,eskultety/libvirt,crobinso/libvirt,crobinso/libvirt,eskultety/libvirt,rlaager/libvirt,andreabolognani/libvirt,warewolf/libvirt,usc-isi/libvirt,emaste/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,agx/libvirt,VenkatDatta/libvirt,zippy2/libvirt,wiedi/libvirt,rlaager/libvirt,rlaager/libvirt,usc-isi/libvirt,taget/libvirt,wiedi/libvirt,cbosdo/libvirt,bjzhang/libvirt,emaste/libvirt,rmarwaha/libvirt,jfehlig/libvirt,elmarco/libvirt,danwent/libvirt-ovs,siboulet/libvirt-openvz,agx/libvirt,datto/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,jeckersb/libvirt,shugaoye/libvirt,wiedi/libvirt,bjzhang/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,libvirt/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,elmarco/libvirt,rbu/libvirt,libvirt/libvirt,iam-TJ/libvirt,taget/libvirt,leilihh/libvirt,agx/libvirt,bjzhang/libvirt,amery/libvirt-vserver,cbosdo/libvirt,libvirt/libvirt,zippy2/libvirt,dumbbell/libvirt,jfehlig/libvirt,dumbbell/libvirt,rmarwaha/libvirt,foomango/libvirt,rbu/libvirt,andreabolognani/libvirt,wiedi/libvirt,amery/libvirt-vserver,jeckersb/libvirt,foomango/libvirt,trainstack/libvirt,jfehlig/libvirt,rmarwaha/libvirt,jardasgit/libvirt,leilihh/libvirt,taget/libvirt,eskultety/libvirt,nertpinx/libvirt,cbosdo/libvirt,wiedi/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,novel/fbsd-libvirt,emaste/libvirt,fabianfreyer/libvirt,warewolf/libvirt,jardasgit/libvirt,amery/libvirt-vserver,sshah-solarflare/Libvirt-PCI-passthrough-,wiedi/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,warewolf/libvirt,rbu/libvirt,foomango/libvirt,taget/libvirt,kantai/libvirt-vfork,emaste/libvirt,kantai/libvirt-vfork,shugaoye/libvirt,kantai/libvirt-vfork,elmarco/libvirt,wiedi/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,nertpinx/libvirt,usc-isi/libvirt,soulxu/libvirt-xuhj,datto/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,cbosdo/libvirt,emaste/libvirt,VenkatDatta/libvirt,amery/libvirt-vserver,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt1,danwent/libvirt-ovs,andreabolognani/libvirt,trainstack/libvirt,jfehlig/libvirt,jardasgit/libvirt,jeckersb/libvirt,eskultety/libvirt,leilihh/libvirt,rmarwaha/libvirt1,rlaager/libvirt,taget/libvirt,kantai/libvirt-vfork,olafhering/libvirt,andreabolognani/libvirt,leilihh/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,datto/libvirt,trainstack/libvirt,soulxu/libvirt-xuhj,soulxu/libvirt-xuhj,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,leilihh/libvirt,iam-TJ/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zippy2/libvirt,warewolf/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,iam-TJ/libvirt,dumbbell/libvirt,zippy2/libvirt,elmarco/libvirt,danwent/libvirt-ovs,shugaoye/libvirt,warewolf/libvirt,agx/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,libvirt/libvirt,fabianfreyer/libvirt,jeckersb/libvirt,crobinso/libvirt,trainstack/libvirt,iam-TJ/libvirt,soulxu/libvirt-xuhj,leilihh/libvirt,andreabolognani/libvirt,jeckersb/libvirt,olafhering/libvirt,dumbbell/libvirt,rmarwaha/libvirt1,warewolf/libvirt,jardasgit/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,nertpinx/libvirt,eskultety/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,datto/libvirt,kantai/libvirt-vfork,bjzhang/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt1,danwent/libvirt-ovs,cbosdo/libvirt,rlaager/libvirt,bjzhang/libvirt,foomango/libvirt,iam-TJ/libvirt,shugaoye/libvirt,datto/libvirt,emaste/libvirt,crobinso/libvirt,rbu/libvirt,emaste/libvirt,novel/fbsd-libvirt,soulxu/libvirt-xuhj,jeckersb/libvirt,elmarco/libvirt,trainstack/libvirt,shugaoye/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,VenkatDatta/libvirt,iam-TJ/libvirt,amery/libvirt-vserver,dumbbell/libvirt,rmarwaha/libvirt