Fix example code.
diff --git a/man/zip_file_add.mdoc b/man/zip_file_add.mdoc
index 0c4cb05..298e2d6 100644
--- a/man/zip_file_add.mdoc
+++ b/man/zip_file_add.mdoc
@@ -29,7 +29,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 23, 2012
+.Dd October 6, 2012
 .Dt ZIP_FILE_ADD 3
 .Os
 .Sh NAME
@@ -106,8 +106,9 @@
 .Sh EXAMPLES
 .Bd -literal -offset indent
 struct zip_source *s;
+const char buf="teststring";
 
-if ((s=zip_source_buffer(archive, buffer, len)) == NULL ||
+if ((s=zip_source_buffer(archive, buffer, sizeof(buf), 0)) == NULL ||
     zip_file_add(archive, name, s, ZIP_FL_ENC_UTF_8) \*[Lt] 0) {
     zip_source_free(s);
     printf("error adding file: %s\en", zip_strerror(archive));