Skip to content

Commit

Permalink
Fix 32-bit system build error
Browse files Browse the repository at this point in the history
size_t is only an int on 32 bit ARM, so %ld gives an error.  Add a cast.
  • Loading branch information
Dave Olson committed Oct 6, 2016
1 parent 678de9b commit 3279fbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: libnss-tacplus
Priority: optional
Maintainer: devsupport <devsupport@cumulusnetworks.com>
Maintainer: Dave Olson <olson@cumulusnetworks.com>
Build-Depends: debhelper (>= 9), autotools-dev, libtac-dev, libtacplus-map-dev, libaudit-dev, autoconf, libpam-tacplus-dev, dpkg-dev (>= 1.16.1)
Section: libs
Standards-Version: 3.9.6
Expand Down
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libnss-tacplus
Homepage: http://cumulusnetworks.com
Source: http://www.cumulusnetworks.com

Files: *
Copyright: 2010 Pawel Krawczyk <[email protected]> and Jeroen Nijhof <[email protected]>,
Expand Down
2 changes: 1 addition & 1 deletion debian/source/format
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0 (git)
1.0
2 changes: 1 addition & 1 deletion nss_tacplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pwcopy(char *buf, size_t len, struct passwd *srcpw, struct passwd *destpw,
if(needlen > len) {
if(debug)
syslog(LOG_DEBUG, "%s provided password buffer too small (%ld<%d)",
nssname, len, needlen);
nssname, (long)len, needlen);
return 1;
}

Expand Down

0 comments on commit 3279fbb

Please sign in to comment.