From 7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 28 Apr 2010 19:36:39 +0200 Subject: Fix warnings found with clang analyzer --- examples/sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/sample.c') diff --git a/examples/sample.c b/examples/sample.c index 577851f7..20abe318 100644 --- a/examples/sample.c +++ b/examples/sample.c @@ -53,7 +53,7 @@ static int auth_callback(const char *prompt, char *buf, size_t len, if (echo) { while ((answer = fgets(buf, len, stdin)) == NULL); if ((ptr = strchr(buf, '\n'))) { - ptr = '\0'; + *ptr = '\0'; } } else { answer = getpass(prompt); -- cgit