Bug 105838 - krb5 bad source code
krb5 bad source code
Status: CLOSED DUPLICATE of bug 82186
Product: Red Hat Linux
Classification: Retired
Component: krb5 (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-09-28 07:11 EDT by d.binderman
Modified: 2007-04-18 12:57 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 13:58:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2003-09-28 07:11:24 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I just tried to compile package krb5-1.2.7-10 from Redhat 9.0
with compiler flag -Wall.

The compiler said

client.c:220: warning: too few arguments for format

The source code is
               fprintf(stderr, "RPC_TEST_ECHO call %d response wrong: "
                       "arg = %s, resp = %s\n", echo_arg, *echo_resp);

Surely wrong ? Three % specifiers, but only two parameters ?

Also, the compiler said

client.c:326: warning: too few arguments for format

The source code is

                    fprintf(stderr,
                            "RPC_TEST_LENGTHS call %d response wrong\n");

This looks wrong to me. One %d, no number.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. compile with -Wall.
2.
3.
    

Additional info
Comment 1 Marcin Garski 2004-12-18 15:01:23 EST

*** This bug has been marked as a duplicate of 82186 ***
Comment 2 Red Hat Bugzilla 2006-02-21 13:58:49 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.