Re: sigsegv mit fopen

"Benjamin Rogge" <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
> BUFSIZE oder BUFF_SIZE? Eines von beiden ....

Mein Fehler! Es heisst natürlich BUFF_SIZE.


> fgets() speichert auch Zeilenumbrüche (new lines, '\n') in den buffer. 
> Das sollte entfernt werden bevor fopen() mit dem Inhalt von buffer 
> aufgerufen wird.

Zeilenumbrüche werden nun entfernt, aber die Zugriffsverletzung bleibt.

-- 
Are you good enough to be different???

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.