Project

General

Profile

Bug #3010

lib/libstand& lib/libtelnet: 3 problems

Added by dcb 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/04/2017
Due date:
% Done:

0%


Description

1:

dragonfly/lib/libstand/hammer1.c:932]: (error) printf format string requires 3 parameters but only 2 are given.

Source code is

printf("hammer_open %s %p %ld\n", path, f);

2.

[dragonfly/lib/libtelnet/rsaencpwd.c:336]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'?

3.

[dragonfly/lib/libtelnet/rsaencpwd.c:344]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'?

Source code is

*ptr++;

History

#1 Updated by dillon 3 months ago

  • Status changed from New to Closed

Clean up the code. None of these created any actual bug in the world build, but the code constructions were wrong. hammer1 is not used in libstand. And the *ptr++ in rsaencpwd.c was supposed to be ptr++, so the original code actually worked even if it had the extra '*' prefix.

Fix committed by Matt

Also available in: Atom PDF