Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
f8d54b4e
Commit
f8d54b4e
authored
Feb 04, 2004
by
Howard Chu
Browse files
Fix prev EBCDIC commit
parent
25c9bb33
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblber/debug.c
View file @
f8d54b4e
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment