Explorar o código

* merge with apt--ddtp--0

Patches applied:

 * michael.vogt@ubuntu.com--2005/apt--ddtp--0--patch-17
   * merged with mainline

 * michael.vogt@ubuntu.com--2005/apt--ddtp--0--patch-18
   * fix a off-by-one error when showing the description
Michael Vogt %!s(int64=21) %!d(string=hai) anos
pai
achega
c32d54cd0e
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      cmdline/apt-cache.cc
  2. 1 1
      configure.in

+ 1 - 1
cmdline/apt-cache.cc

@@ -1229,7 +1229,7 @@ bool DisplayRecord(pkgCache::VerIterator V)
    const unsigned char *DescP = (unsigned char*)strstr((char*)Buffer, "Description:");
    const unsigned char *DescP = (unsigned char*)strstr((char*)Buffer, "Description:");
 
 
    // Write all but Description
    // Write all but Description
-   if (fwrite(Buffer,1,DescP - Buffer-1,stdout) < (size_t)(DescP - Buffer-1))
+   if (fwrite(Buffer,1,DescP - Buffer,stdout) < (size_t)(DescP - Buffer))
    {
    {
       delete [] Buffer;
       delete [] Buffer;
       return false;
       return false;

+ 1 - 1
configure.in

@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 
 dnl -- SET THIS TO THE RELEASE VERSION --
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.6.41.0exp2")
+AC_DEFINE_UNQUOTED(VERSION,"0.6.42.0exp1")
 PACKAGE="apt"
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
 AC_SUBST(PACKAGE)