aboutsummaryrefslogtreecommitdiff
path: root/examples/sample.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 19:36:39 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 19:36:39 +0200
commit7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd (patch)
tree8e8d37cffd037c8609cc08ce69d3c45aa0f965cd /examples/sample.c
parent20e7ec96ae01d4367a7fbcd87bdbf0fa6496492b (diff)
downloadlibssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.gz
libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.xz
libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.zip
Fix warnings found with clang analyzer
Diffstat (limited to 'examples/sample.c')
-rw-r--r--examples/sample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sample.c b/examples/sample.c
index 577851f..20abe31 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);