Bug in Get_Line procedure and patch
Gerhard Dieringer <[email protected]> 09 Apr 2004 12:47:33 +0200
| Newsgroups | gmane.comp.lang.ada.sockets |
|---|---|
| Message-ID | <1081507654.1875.1.camel@lise> |
Hi, when I use Put_Line to send strings via UDP to a server and receive these strings with Get_Line, the following problem occures: The first string is correct but all the following strings start with a NUL-character and are one byte too long. When writing the strings to the screen, they seem to be ok because the NUL is not shown on the screen. With TCP this effect does not occur. I think the problem can be solved with the following patch (Version 1.8.4.3): file sockets.adb: 295c295 < elsif Char /= CR then --- > elsif Char /= CR and then Char /= Ada.Characters.Latin_1.NUL then ----------------- Gerhard Dieringer _______________________________________________ AdaSockets mailing list [email protected] http://lists.rfc1149.net/mailman/listinfo/adasockets