/* if the data directory is not an absolute path, have it relative
to the current working directory (which should not be configured !) */
- if ( *li->li_directory != *DIRSEP ) {
+ if ( *li->li_directory != *LDAP_DIRSEP ) {
char cwd[MAXPATHLEN];
(void) getcwd( cwd, MAXPATHLEN );
- sprintf( cwd, "%s%s%s", cwd, DIRSEP, li->li_directory );
+ sprintf( cwd, "%s" LDAP_DIRSEP "%s", cwd, li->li_directory );
free( li->li_directory );
li->li_directory = strdup( cwd );