|
From: | Todd Vollmer |
Subject: | [bug-inetutils] snprintf problem in rcp.c |
Date: | Wed, 21 May 2003 11:00:03 -0600 |
I was building inetutils-1.4.2 on an SGI IRIX 6.5.19m with both gcc 2.95.2 and the mipspro compiler version 7.2.1.3m and had a problem with the following code starting on line 560.
snprintf(buf, sizeof buf,
(sizeof(stb.st_size) > sizeof(long)
? "C%04o %qd %s\n"
: "C%04o %ld %s\n"),
stb.st_mode & RCP_MODEMASK, stb.st_size, last);
The problem is with the %qd format specifier. This is not supported on the irix machine. It can sucessfully be replaced with %lld.
Thanks,
Todd Vollmer
[Prev in Thread] | Current Thread | [Next in Thread] |