Module Name: src Committed By: joerg Date: Fri Jul 1 01:15:27 UTC 2011
Modified Files: src/lib/libtelnet: sra.c Log Message: Fix memset usage. XXX should use static allocate and proper sizeof() To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libtelnet/sra.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libtelnet/sra.c diff -u src/lib/libtelnet/sra.c:1.8 src/lib/libtelnet/sra.c:1.9 --- src/lib/libtelnet/sra.c:1.8 Tue Oct 25 23:36:07 2005 +++ src/lib/libtelnet/sra.c Fri Jul 1 01:15:27 2011 @@ -32,7 +32,7 @@ #ifdef notdef __FBSDID("$FreeBSD: src/contrib/telnet/libtelnet/sra.c,v 1.16 2002/05/06 09:48:02 markm Exp $"); #else -__RCSID("$NetBSD: sra.c,v 1.8 2005/10/25 23:36:07 christos Exp $"); +__RCSID("$NetBSD: sra.c,v 1.9 2011/07/01 01:15:27 joerg Exp $"); #endif #ifdef SRA @@ -328,7 +328,7 @@ (void)strcpy(passprompt, "Password: "); } /* encode password */ - memset(pass,0,sizeof(pass)); + memset(pass,0,256); if (telnet_gets(passprompt,pass,255,0) == NULL) { printf("\n"); exit(1);