* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
f = fopen(fullname, "r");
#ifdef DATADIR
if(f == NULL && *fullname != '/') { // when a relative name did not work
- MySearchPath(DATADIR "/themes/conf", name, fullname); // also look in standard place
+ char buf[MSG_SIZ];
+ snprintf(buf, MSG_SIZ, "%s/themes/conf", DATADIR);
+ MySearchPath(buf, name, fullname); // also look in standard place
f = fopen(fullname, "r");
}
#endif