summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-19 09:40:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:51 -0500
commit3d5f029ead8ccea45a5537a51f24c5144102a29b (patch)
tree60e47bf10fb6e5689340a0edbb8387870146654e /source3/modules
parent34af42e87ef2ea867c8a43ccfbc0665e97c06241 (diff)
downloadsamba-3d5f029ead8ccea45a5537a51f24c5144102a29b.tar.gz
samba-3d5f029ead8ccea45a5537a51f24c5144102a29b.tar.bz2
samba-3d5f029ead8ccea45a5537a51f24c5144102a29b.zip
r25222: Fix last assumptions that (size_t)-1 can be used
as a special dest_len of sizeof(pstring). Jeremy. (This used to be commit 9fc14c83cc5e3a360464c33e26b1073db63763d7)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_catia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c
index 3bdd4116a8..325ec16e49 100644
--- a/source3/modules/vfs_catia.c
+++ b/source3/modules/vfs_catia.c
@@ -39,7 +39,7 @@ static void catia_string_replace(char *s, unsigned char oldc, unsigned
for (;*ptr;ptr++)
if (*ptr==old) *ptr=newc;
- pull_ucs2(NULL, s, tmpbuf, -1, sizeof(tmpbuf), STR_TERMINATE);
+ pull_ucs2(NULL, s, tmpbuf, sizeof(pstring), sizeof(tmpbuf), STR_TERMINATE);
}
static void from_unix(char *s)