VirtualBox

Opened 8 years ago

Closed 8 years ago

#15522 closed defect (invalid)

vbox/src/VBox/RDP/client-1.8.3/ctrl.c:509: schoolboy howler with fgetc and EOF ?

Reported by: dcb Owned by:
Component: other Version: VirtualBox 5.0.22
Keywords: Cc:
Guest type: other Host type: other

Description

vbox/src/VBox/RDP/client-1.8.3/ctrl.c:509]: (warning) Storing fgetc() return value in char variable and then comparing with EOF.

Source code is

while ((c = fgetc(fp)) != EOF && index < CTRL_RESULT_SIZE && c != '\n')

Suggest change type of c to int.

Change History (1)

comment:1 by Frank Mehnert, 8 years ago

Resolution: invalid
Status: newclosed

Please stop SPAMMING this bugtracker!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use