home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!dohm
- From: dohm@magnus.acs.ohio-state.edu (Peter J Dohm)
- Subject: Fix for Minicom - .98-5
- Message-ID: <1992Nov17.203118.10036@magnus.acs.ohio-state.edu>
- Summary: Simple fix...
- Keywords: Minicom , Linux
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: magnusug.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Distribution: comp
- Date: Tue, 17 Nov 1992 20:31:18 GMT
- Lines: 48
-
- Hi.
-
- Seeing as I got a few posts about the sloppiness of a small fix for
- window.c in minicom, i'd like to update the fix:
-
- change
-
- char *gname = "gA"
-
- to
-
- char gname[] = "gA"
-
- in window.c
-
- that fixes that problem... the other problem exists in keyserv. the
- escape sequences for the ansi, vt100, and minix emulations are kept in
- arrays, but inside each array is a bunch of static strings... keyserv
- attempts to modify these strings... therefore, since re-coding would be
- rather ugly, simply adding the compile switch -fwritable-strings would have
- fixed that problem. (it would have fixed the above problem too)
- i.e.:
-
- rather than gcc -whatever -whatever -whatever -o keyserv keyserv.c
- gcc -fwritable-strings -whatever -whatever -whatever blah blah.
-
- If anyone *really* wants this fixed then fine. But i do not thing that
- the -fwritable-strings directive is an *undesirable* fix. It works, and I
- can't imagine it being all that difficult to implement in the compiler - i.e.
- it's probably not adding overhead or much code at all...
-
- So now the important question is:
-
- Why didn't the program seg-fault? Why did it just sit there endlessly
- chomping away at nothing??? According to linus, an attempted modification
- of a text segment string should seg-fault. The attempted modifications were
- occuring, however, it didn't seg fault.
-
- I am sending a reference to this article to linus, to make sure
- he see's it.
-
- Pete
- ---
- +---------------------------------------------------------------------------+
- | Peter J. Dohm - Comp. Science Major | The Ohio State University |
- | ** dohm@magnus.acs.ohio-state.edu ** | ak541@cleveland.freenet.edu |
- | dohm.1@osu.edu, dohm@cis.ohio-state.edu | dohm@cis.ohio-state.edu |
- +---------------------------------------------------------------------------+
-