diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-16 11:38:20 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-16 11:38:20 +0200 |
commit | ea6db08d45e012d577f3081fa2070db9e034add9 (patch) | |
tree | b9042779b1aeecb6faef6e127f9b68175dd3127c /apt-pkg/contrib/strutl.cc | |
parent | f107544e43fc3d262d9df5bde6eb430b7008825f (diff) |
* apt-pkg/contrib/strutl.cc:
- fix error checking for vsnprintf in its safe variant
Spotted by -Wextra:
contrib/strutl.cc: In function 'char* safe_snprintf(char*, char*, const char*, ...)':
contrib/strutl.cc:1172:14: warning: comparison of unsigned expression < 0 is always false
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r-- | apt-pkg/contrib/strutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index ace74cb37..c1844de40 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -1161,7 +1161,7 @@ void strprintf(string &out,const char *format,...) char *safe_snprintf(char *Buffer,char *End,const char *Format,...) { va_list args; - unsigned long Did; + int Did; va_start(args,Format); |