p4raw-id: //depot/perl@5020
#ifdef SITELIB_EXP
{
- char buf[MAXPATHLEN];
-
- strcpy(buf,SITELIB_EXP);
- if (strrchr(buf,'/')) /* XXX Hack, Configure var needed */
- *strrchr(buf,'/') = '\0';
- incpush(buf, TRUE);
+ char *path = SITELIB_EXP;
+
+ if (path) {
+ char buf[1024];
+ strcpy(buf,path);
+ if (strrchr(buf,'/')) /* XXX Hack, Configure var needed */
+ *strrchr(buf,'/') = '\0';
+ incpush(buf, TRUE);
+ }
}
#endif
#if defined(PERL_VENDORLIB_EXP)