*** ripperX-2.7.2/src/ripper_encoder_manipulation.c 2008-02-14 11:05:09.000000000 -0700 --- ripperX-2.7.2-fractal13/src/ripper_encoder_manipulation.c 2010-11-06 21:56:08.647978926 -0600 *************** *** 231,239 **** // Debian modification for alternate plugin location // char debian_path[ MAX_COMMAND_LENGTH ]; ! strcpy(debian_path, "/usr/lib/ripperx:"); ! strcat(debian_path, getenv("PATH")); ! setenv("PATH", debian_path, 1); // end Debian modifications // parse/expand program command --- 231,244 ---- // Debian modification for alternate plugin location // char debian_path[ MAX_COMMAND_LENGTH ]; ! char *path = getenv("PATH"); ! char *found = strstr(path, "/usr/lib/ripperx:"); ! if(found == NULL) /* Only add the path if it isn't already present. */ ! { ! strcpy(debian_path, "/usr/lib/ripperx:"); ! strcat(debian_path, getenv("PATH")); ! setenv("PATH", debian_path, 1); ! } // end Debian modifications // parse/expand program command