projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5bdc7e
)
Fix Solaris build
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 14 Apr 2016 16:35:14 +0000
(17:35 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 14 Apr 2016 16:35:14 +0000
(17:35 +0100)
src/src/os.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/os.c
b/src/src/os.c
index b0adc587a946e46f5b71bf4543024b95d8e1e1ca..f8b8f6e9a65b0594987efb1e332f892121b78e69 100644
(file)
--- a/
src/src/os.c
+++ b/
src/src/os.c
@@
-874,12
+874,12
@@
return getcwd((char *)buffer, size);
unsigned char *
os_getcwd(unsigned char * buffer, size_t size)
{
-
void *rc
;
+
char * b = (char *)buffer
;
if (!size) size = PATH_MAX;
-if (!b
uffer && !(buffer = US
malloc(size))) return NULL;
-if (!(b
uffer = getcwd((char *)buffer
, size))) return NULL;
-return realloc(
(char *)buffer, strlen(buffer
) + 1);
+if (!b
&& !(b =
malloc(size))) return NULL;
+if (!(b
= getcwd(b
, size))) return NULL;
+return realloc(
b, strlen(b
) + 1);
}
#endif