diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-15 12:28:08 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-15 12:28:08 (GMT) |
commit | 1dde4ab36cef08e6bdbf3400f93e9813b0e064d8 (patch) | |
tree | e1a38b7c8c3f3ada46b82d26ba82eaf2959749f1 /Source/CPack/cmCPackDebGenerator.cxx | |
parent | 96a93400c5e1fe09cf150eaccd5368a7bb1884be (diff) | |
download | CMake-1dde4ab36cef08e6bdbf3400f93e9813b0e064d8.zip CMake-1dde4ab36cef08e6bdbf3400f93e9813b0e064d8.tar.gz CMake-1dde4ab36cef08e6bdbf3400f93e9813b0e064d8.tar.bz2 |
COMP: fix build on HPUX, snprintf apparently doesn't work there
Alex
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 0971b36..60e476b 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -369,15 +369,14 @@ static int put_arobj(CF *cfp, struct stat *sb) gid = USHRT_MAX; } if (lname > sizeof(hdr->ar_name) || strchr(name, ' ')) - (void)snprintf(ar_hb, sizeof(ar_hb), - HDR1, AR_EFMT1, lname, - (long int)sb->st_mtime, uid, gid, sb->st_mode, - sb->st_size + lname, ARFMAG); + (void)sprintf(ar_hb, HDR1, AR_EFMT1, lname, + (long int)sb->st_mtime, uid, gid, sb->st_mode, + (long long)sb->st_size + lname, ARFMAG); else { lname = 0; - (void)snprintf(ar_hb, sizeof(ar_hb), - HDR2, name, (long int)sb->st_mtime, - uid, gid, sb->st_mode, sb->st_size, ARFMAG); + (void)sprintf(ar_hb, HDR2, name, + (long int)sb->st_mtime, uid, gid, sb->st_mode, + (long long)sb->st_size, ARFMAG); } off_t size = sb->st_size; |