提交 60f74926 编写于 作者: B Bodo Möller

Don't access non-existing element buf[256], use buf[255] instead.

Submitted by: draslar <draslar@elray.ch>
上级 1456d186
......@@ -75,7 +75,7 @@ main()
buf[0]='\0';
fgets(buf,256,stdin);
if (buf[0] == '\0') break;
buf[256]='\0';
buf[255]='\0';
i=strlen(buf);
p=OPENSSL_malloc(i+1);
memcpy(p,buf,i+1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册