home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!alijku11!k111114
- Organization: Johannes Kepler University Linz - Computing Center
- Date: Thursday, 19 Nov 1992 21:59:09 CET
- From: <K111114@ALIJKU11.BITNET>
- Message-ID: <92324.215909K111114@ALIJKU11.BITNET>
- Newsgroups: comp.os.linux
- Subject: telnetd: BUG FIX (contd)
- Lines: 11
-
- oh :-)
- forgot to ask WHY the bugfix in the article before would work, what code the
- compiler generates for something like "line = "/dev/ptyXX" so that the r/o
- textsegment is violated. Since "line" is a char *, and "/dev/ptyXX" is a
- string-constant, why should there be any problems ? Either the stringconstant
- is malloc'ed again, (should point now to the datasegment), or "line" is
- assigned the reference to the string-constant. Only explanation now is that
- the string-constant is compiled into the textsegment | Is that true ? *shrug*
- Does the compiler really put it in the text? Not so nice ....
-
- Herp.
-