[Bf-committers] Long plugin path problem

Stephane SOPPERA bf-committers@blender.org
Sat, 13 Sep 2003 00:22:47 +0200


Hi!

I noticed today that the path of sequence plugins is limited to 80 
caracters (name member of the PluginSeq struct) and that strcpy is used 
to copy the path in this variable. So the memory is corrupted when the 
path for a plugin is longer than 80 characters (that's the case of many 
plugins on my system) and the plugin don't work ;-)

An easy fix would be to set a bigger limit (bigger than FILE_MAXDIR 
which is quite small and lesser than PATH_MAX on my system). A better 
fix should be to use a C++ class for strings ;-)

Thanks,

-- 
Stephane SOPPERA
http://perso.wanadoo.fr/stephane.soppera