This patch allows dosbox to resolve relative paths that are longer than 80 characters. This allows using djgpp in dosbox. There is no need to limit the length of the input path as long as it resolves to an absolute path that is less than 80 characters. Djgpp likes to open paths like "d:/djgpp/bin/../lib/gcc/djgpp/4.42/../../../../include/cxx/4.42/djgpp/bits/cxxconfig.h", which is longer than 80 characters, but resolves to "D:\DJGPP\INCLUDE\CXX\4.42\DJGPP\BITS\CXXCONFI.H" which is fine.
The patch looks alright at first glance.
the 3+ stuff is to take in account drive:\ right ?
Yes, the 3+ stuff accounts for drive:.