summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/copyattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/copyattr.c b/examples/copyattr.c
index 0f6928e..e3ce57b 100644
--- a/examples/copyattr.c
+++ b/examples/copyattr.c
@@ -94,7 +94,7 @@ struct error_context ctx = { error, quote, quote_free };
*/
static int is_user_attr(const char *name, struct error_context *ctx)
{
- return strcmp(name, "user.") == 0;
+ return strncmp(name, "user.", 5) == 0;
}
int