Opened 9 years ago
Closed 9 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.
Note:
See TracTickets
for help on using tickets.
Please stop SPAMMING this bugtracker!