replace: fix typo in variable name
authorDavid Disseldorp <ddiss@samba.org>
Thu, 28 Nov 2013 14:56:58 +0000 (15:56 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 28 Nov 2013 17:16:27 +0000 (18:16 +0100)
13550a2b5eed57084a5d9671d9493a9a2e08d7e3 added a typo causing
compilation failure.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Nov 28 18:16:27 CET 2013 on sn-devel-104

lib/replace/replace.c

index effe5defe6c674f5feb1d1e2ff1336c47bad207a..2a9ca3e5abb6b27c021ce903ed5099b2b5cd1762 100644 (file)
@@ -84,7 +84,7 @@ size_t rep_strlcpy(char *d, const char *s, size_t bufsize)
    be one more than the maximum resulting string length */
 size_t rep_strlcat(char *d, const char *s, size_t bufsize)
 {
-       size_t len1 = strnlen(d, bufsiz);
+       size_t len1 = strnlen(d, bufsize);
        size_t len2 = strlen(s);
        size_t ret = len1 + len2;