Index: ap_UnixApp.cpp =================================================================== RCS file: /cvsroot/abi/src/wp/ap/unix/ap_UnixApp.cpp,v retrieving revision 1.109 diff -r1.109 ap_UnixApp.cpp 983a984,985 > > rms: I'm adding something here to get a localized splash screen 989a992,996 > //const char * szFile = "splash"; // remove .png so I can add lang if exists > > //const char * sLANG = getenv("LANG"); > const char * sLANG = NULL; > const short iLANGsize = sLANG ? strlen(sLANG) : 0; 990a998,1000 > // rms: I got tired of reading/writing this more than once > const unsigned short iSplashPathSize = strlen(szDirectory) + > strlen(szFile) + iLANGsize + 4 + 2; 993c1003 < if (strlen(szDirectory) + strlen(szFile) + 2 >= PATH_MAX) --- > if (iSplashPathSize >= PATH_MAX) 997c1007 < buf = (char *)malloc(strlen(szDirectory) + strlen(szFile) + 2); --- > buf = (char *)malloc(iSplashPathSize); 998a1009,1014 > /* rms: I think the following LOC equals the next 5 > remember that having multiple / in a path equals > having just one. So this is faster. > */ > snprintf(buf, iSplashPathSize, "%s/%s", szDirectory, szFile); > /* 1003a1020 > */