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
HAMANO Tsukasa
OpenLDAP
Commits
5b7c983a
Commit
5b7c983a
authored
Sep 14, 2011
by
Howard Chu
Browse files
MacOSX semaphore names are limited to 31 chars
Including the terminating NUL. Good job documenting that, guys.
parent
0533f803
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
5b7c983a
...
...
@@ -2164,7 +2164,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
#else
/* _WIN32 */
#ifdef __APPLE__
char
*
ptr
;
sprintf
(
env
->
me_txns
->
mti_rmname
,
"MDBr%.2
8
s"
,
lpath
);
sprintf
(
env
->
me_txns
->
mti_rmname
,
"MDBr%.2
6
s"
,
lpath
);
ptr
=
env
->
me_txns
->
mti_rmname
+
sizeof
(
"MDBr"
)
-
1
;
while
((
ptr
=
strchr
(
ptr
,
'/'
)))
*
ptr
++
=
'_'
;
...
...
@@ -2178,7 +2178,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
rc
=
ErrCode
();
goto
fail
;
}
sprintf
(
env
->
me_txns
->
mti_wmname
,
"MDBw%.2
8
s"
,
lpath
);
sprintf
(
env
->
me_txns
->
mti_wmname
,
"MDBw%.2
6
s"
,
lpath
);
ptr
=
env
->
me_txns
->
mti_wmname
+
sizeof
(
"MDBw"
)
-
1
;
while
((
ptr
=
strchr
(
ptr
,
'/'
)))
*
ptr
++
=
'_'
;
...
...
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