* [gentoo-commits] gentoo commit in src/patchsets/skey/1.1.5: 11_all_strncat-warning.patch
@ 2012-01-04 21:16 Ulrich Mueller (ulm)
0 siblings, 0 replies; only message in thread
From: Ulrich Mueller (ulm) @ 2012-01-04 21:16 UTC (permalink / raw
To: gentoo-commits
ulm 12/01/04 21:16:06
Added: 11_all_strncat-warning.patch
Log:
Patchset for skey-1.1.5
Revision Changes Path
1.1 src/patchsets/skey/1.1.5/11_all_strncat-warning.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/skey/1.1.5/11_all_strncat-warning.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/skey/1.1.5/11_all_strncat-warning.patch?rev=1.1&content-type=text/plain
Index: 11_all_strncat-warning.patch
===================================================================
--- skey-1.1.5-orig/skeyinit.c
+++ skey-1.1.5/skeyinit.c
@@ -111,7 +111,7 @@
defaultseed[SKEY_NAMELEN] = '\0';
time(&now);
snprintf(tbuf, sizeof(tbuf), "%05ld", (long) (now % 100000));
- strncat(defaultseed, tbuf, sizeof(defaultseed));
+ strncat(defaultseed, tbuf, sizeof(defaultseed) - SKEY_NAMELEN - 1);
if ((pp = getpwuid(getuid())) == NULL)
err(1, "no user with uid %ld", (u_long)getuid());
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-04 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 21:16 [gentoo-commits] gentoo commit in src/patchsets/skey/1.1.5: 11_all_strncat-warning.patch Ulrich Mueller (ulm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox