1 diff -Nru avifile0.7-0.7.32/lib/common/Registry.cpp avifile0.7-0.7.32.new/lib/common/Registry.cpp
2 --- avifile0.7-0.7.32/lib/common/Registry.cpp Fri Oct 4 09:07:33 2002
3 +++ avifile0.7-0.7.32.new/lib/common/Registry.cpp Sun Mar 23 13:59:08 2003
8 - home = getenv("HOME");
10 + int config_dir_used = 0;
11 + home = getenv("CONFIG_DIR");
12 + if (home) config_dir_used = 1;
15 - struct passwd* pwent = getpwuid(getuid());
16 - home = pwent->pw_dir;
17 + home = getenv("HOME");
20 + struct passwd* pwent = getpwuid(getuid());
21 + home = pwent->pw_dir;
27 + if (config_dir_used) s+= "/avm";