Skip to content
Snippets Groups Projects
Commit f8d54b4e authored by Howard Chu's avatar Howard Chu
Browse files

Fix prev EBCDIC commit

parent 25c9bb33
No related branches found
No related tags found
No related merge requests found
......@@ -304,6 +304,7 @@ void (lutil_debug)( int debug, int level, const char *fmt, ... )
}
#if defined(HAVE_EBCDIC) && defined(LDAP_SYSLOG)
#undef syslog
void eb_syslog( int pri, const char *fmt, ... )
{
char buffer[4096];
......@@ -313,8 +314,11 @@ void eb_syslog( int pri, const char *fmt, ... )
vsnprintf( buffer, sizeof(buffer), fmt, vl );
buffer[sizeof(buffer)-1] = '\0';
/* The syslog function appears to only work with pure EBCDIC */
__atoe(buffer);
#pragma convlit(suspend)
syslog( pri, "%s", buffer );
#pragma convlit(resume)
va_end( vl );
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment