RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Ralf S. Engelschall
  Root:   /v/rpm/cvs                       Email:  [EMAIL PROTECTED]
  Module: rpm                              Date:   10-Jul-2007 20:45:06
  Branch: HEAD                             Handle: 2007071019450600

  Modified files:
    rpm/lib                 rpmsx.c

  Log:
    add an ugly but necessary cast as the 'stem' field is const in the
    outer API

  Summary:
    Revision    Changes     Path
    2.14        +1  -1      rpm/lib/rpmsx.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/rpmsx.c
  ============================================================================
  $ cvs diff -u -r2.13 -r2.14 rpmsx.c
  --- rpm/lib/rpmsx.c   21 Feb 2005 15:23:30 -0000      2.13
  +++ rpm/lib/rpmsx.c   10 Jul 2007 18:45:06 -0000      2.14
  @@ -164,7 +164,7 @@
   /[EMAIL PROTECTED]@*/    sxs->stem = strndup(*bpp, stem_len);
   #else
       sxs->stem = xmalloc(stem_len+1);
  -    strncpy(sxs->stem, *bpp, stem_len);
  +    strncpy((char *)sxs->stem, *bpp, stem_len);
   #endif
       sx->nsxs++;
       *bpp += stem_len;
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to