summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:57:17 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:57:17 +0000
commit20ebd488ff29272654ab101d5ca25fa5fd4905f5 (patch)
tree7d9400abe56d19191c356b21ddaa3e617f5cf57e /cmdline/apt-get.cc
parente28f10c4b7db4283bb1d65e3a1a9b025f3becd5b (diff)
Core correctness patches
Author: jgg Date: 2001-03-13 05:23:42 GMT Core correctness patches
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 2ddf240d6..c449b3379 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.103 2001/03/03 23:12:07 jgg Exp $
+// $Id: apt-get.cc,v 1.104 2001/03/13 05:23:42 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -429,7 +429,7 @@ bool ShowEssential(ostream &out,CacheFile &Cache)
Added[P->ID] = true;
char S[300];
- sprintf(S,_("%s (due to %s) "),P.Name(),I.Name());
+ snprintf(S,sizeof(S),_("%s (due to %s) "),P.Name(),I.Name());
List += S;
}
}