From fnaumann@mail.cs.uni-magdeburg.de Mon Oct 4 12:48:04 2004 Message-ID: <1096886748.416129dc4504f@imp3-q.free.fr> Date: Mon, 4 Oct 2004 12:45:48 +0200 From: Xavier Joubert To: mint@lists.fishpool.fi Subject: Re: [MiNT] System call bindings References: <695F17FC-1546-11D9-92FA-00039357F826@epfl.ch> <4160FEE8.7080203@utbm.fr> <41610495.5050704@utbm.fr> <416118E7.10107@utbm.fr> <41611F45.7000902@utbm.fr> In-Reply-To: <41611F45.7000902@utbm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 212.234.144.141 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: xavier.joubert@free.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by prinz.cs.uni-magdeburg.de id i94AloNt026491 Hello, Selon Olivier Landemarre : > It could looks something like this if I understand: > if (p->domain == DOM_TOS) copy8_3 (dta->dta_pat, slash); > .... > if (p->domain == DOM_TOS) strncpy (dta->dta_name, slash, TOS_NAMELEN-1); > else strncpy (dta->dta_name, slash, PATH_MAX-1); You must also adjust DTA structure so it could store PATH_MAX chars. But this means that any program working in MiNT domain and compiled with an old osbind.h may crash, since strncpy(..., PATH_MAX-1) may corrupt memory area below DTA. Is it really worth the trouble ? Regards, Xavier