From 569ee5438cf92e0bf1e6d162a2c5bb15ed4782a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 28 May 2009 01:21:08 +0000 Subject: [PATCH] The max_ arguments are really "%.*s" format input paramaters, to make them into ints. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25253 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ls.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/appl/ftp/ftpd/ls.c b/appl/ftp/ftpd/ls.c index 2cb81efbf..1abb37f89 100644 --- a/appl/ftp/ftpd/ls.c +++ b/appl/ftp/ftpd/ls.c @@ -320,9 +320,9 @@ print_file(FILE *out, int max_n_link, int max_user, int max_group, - unsigned int max_size, - unsigned int max_major, - unsigned int max_minor, + int max_size, + int max_major, + int max_minor, int max_date) { if(f->filename == NULL) @@ -569,9 +569,9 @@ list_files(FILE *out, const char **files, int n_files, int flags) int max_n_link = 0; int max_user = 0; int max_group = 0; - unsigned int max_size = 0; - unsigned int max_major = 0; - unsigned int max_minor = 0; + int max_size = 0; + int max_major = 0; + int max_minor = 0; int max_date = 0; for(i = 0; i < n_files; i++) { if(fi[i].filename == NULL) -- 2.11.4.GIT