summaryrefslogtreecommitdiff
path: root/source3/lib/charcnv.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-29 08:26:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-29 08:26:45 +0000
commitf9879578c6ebfba73b1d9a51f9833cb41fff23f2 (patch)
treee719e0e95aaca466b0a0a7fc4a2bcc4eeb5467fe /source3/lib/charcnv.c
parentfab88997b021ad66dd7f03220d95d1f7ee315140 (diff)
downloadsamba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.tar.gz
samba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.tar.bz2
samba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.zip
More spelling and grammer from Vance. <vance@digital-host.net>
Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
Diffstat (limited to 'source3/lib/charcnv.c')
-rw-r--r--source3/lib/charcnv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index d14a1f04e4..e55de729c2 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -77,10 +77,10 @@ void init_iconv(void)
}
/****************************************************************************
- Convert string from one encoding to another, makeing error checking etc
+ Convert string from one encoding to another, making error checking etc
Parameters:
descriptor - conversion descriptor, created in init_iconv
- src - pointer to source string (multibute or singlebyte)
+ src - pointer to source string (multibyte or singlebyte)
srclen - length of the source string in bytes
dest - pointer to destination string (multibyte or singlebyte)
destlen - maximal length allowed for string
@@ -120,14 +120,14 @@ size_t convert_string(charset_t from, charset_t to,
if(retval==-1)
{ char *reason="unknown error";
switch(errno)
- { case EINVAL: reason="Incomplete multybyte sequence"; break;
+ { case EINVAL: reason="Incomplete multibyte sequence"; break;
case E2BIG: reason="No more room";
DEBUG(0, ("Required %d, available %d\n",
srclen, destlen));
break;
- case EILSEQ: reason="Illegal myltybyte sequence"; break;
+ case EILSEQ: reason="Illegal myltibyte sequence"; break;
}
- DEBUG(0,("Conversion error:%s(%s)\n",reason,inbuf));
+ DEBUG(0,("Conversion error: %s(%s)\n",reason,inbuf));
/* smb_panic(reason); */
}
return destlen-o_len;
@@ -336,7 +336,7 @@ int pull_ucs2_fstring(char *dest, const void *src)
/****************************************************************************
copy a string from a char* src to a unicode or ascii
-dos code page destination choosing unicode or ascii based on the
+dos codepage destination choosing unicode or ascii based on the
flags in the SMB buffer starting at base_ptr
return the number of bytes occupied by the string in the destination
flags can have: