summaryrefslogtreecommitdiffstats
path: root/source/smbd/srvstr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-18 22:47:17 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-18 22:47:17 +0000
commite430ded56e9c15a462a171e6350f1eddefa8dd11 (patch)
treee6f39f5c60a913c16395f6ab337081f7bcc22593 /source/smbd/srvstr.c
parente1487eb2c4626dbe0cc3b17606eda702cedef28b (diff)
downloadsamba-e430ded56e9c15a462a171e6350f1eddefa8dd11.tar.gz
samba-e430ded56e9c15a462a171e6350f1eddefa8dd11.tar.xz
samba-e430ded56e9c15a462a171e6350f1eddefa8dd11.zip
fixed some compilation errors with IRIX cc
Diffstat (limited to 'source/smbd/srvstr.c')
-rw-r--r--source/smbd/srvstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/srvstr.c b/source/smbd/srvstr.c
index 241a74f02f0..55cbada10c5 100644
--- a/source/smbd/srvstr.c
+++ b/source/smbd/srvstr.c
@@ -49,7 +49,7 @@ int srvstr_push(void *outbuf, void *dest, const char *src, int dest_len, int fla
if (!(flags & STR_ASCII) && srvstr_align(outbuf, PTR_DIFF(dest, outbuf))) {
*(char *)dest = 0;
- dest++;
+ dest = (void *)((char *)dest + 1);
dest_len--;
len++;
}
@@ -98,7 +98,7 @@ int srvstr_pull(void *inbuf, char *dest, const void *src, int dest_len, int src_
}
if (!(flags & STR_ASCII) && srvstr_align(inbuf, PTR_DIFF(src, inbuf))) {
- src++;
+ src = (void *)((char *)src + 1);
if (src_len > 0) src_len--;
}