From 7df2428077e2001fdfab3ebbb3bb74b0491b74bd Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 14 Sep 2016 09:00:00 +0200 Subject: [PATCH] contrib/examples/myplugin.c: Fix copy and paste error. --- contrib/examples/myplugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/examples/myplugin.c b/contrib/examples/myplugin.c index 9539062c..d836a793 100644 --- a/contrib/examples/myplugin.c +++ b/contrib/examples/myplugin.c @@ -103,7 +103,7 @@ static int my_read (void) /* it is strongly recommended to use a type defined in the types.db file * instead of a custom type */ - sstrncpy (vl.type, "myplugin", sizeof (vl.plugin)); + sstrncpy (vl.type, "myplugin", sizeof (vl.type)); /* optionally set vl.plugin_instance and vl.type_instance to reasonable * values (default: "") */ @@ -113,7 +113,7 @@ static int my_read (void) /* A return value != 0 indicates an error and the plugin will be skipped * for an increasing amount of time. */ - return 0; + return 0; } /* static int my_read (void) */ /* -- 2.30.2