diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clistr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clistr.c b/source3/libsmb/clistr.c index 93361053e0..13bf1f05b7 100644 --- a/source3/libsmb/clistr.c +++ b/source3/libsmb/clistr.c @@ -47,7 +47,7 @@ int clistr_push(struct cli_state *cli, void *dest, const char *src, int dest_len if (!(flags & STR_ASCII) && clistr_align(cli->outbuf, dest)) { *(char *)dest = 0; - dest++; + dest = (void *)((char *)dest + 1); dest_len--; len++; } @@ -96,7 +96,7 @@ int clistr_pull(struct cli_state *cli, char *dest, const void *src, int dest_len } if (!(flags & STR_ASCII) && clistr_align(cli->inbuf, src)) { - src++; + src = (void *)((char *)src + 1); if (src_len > 0) src_len--; } |