RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 04-Apr-2016 05:55:44 Branch: rpm-5_4 Handle: 2016040403554400 Modified files: (Branch: rpm-5_4) rpm/rpmio tgit.c Log: - sanity. Summary: Revision Changes Path 1.1.2.48 +1 -2 rpm/rpmio/tgit.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/rpmio/tgit.c ============================================================================ $ cvs diff -u -r1.1.2.47 -r1.1.2.48 tgit.c --- rpm/rpmio/tgit.c 27 Feb 2016 19:59:20 -0000 1.1.2.47 +++ rpm/rpmio/tgit.c 4 Apr 2016 03:55:44 -0000 1.1.2.48 @@ -1883,8 +1883,7 @@ strcpy(spec, "HEAD"); else git_oid_tostr(spec, sizeof(spec), &blameopts.newest_commit); - strcat(spec, ":"); - strcat(spec, path); + stpncpy(stpncpy(spec, ":", sizeof(*spec)-1), path, sizeof(*spec)-2); xx = chkgit(git, "git_revparse_single", git_revparse_single(&obj, git->R, spec)); @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org