www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/21/06:09:00

Message-ID: <37BE5F62.1D0162D9@softhome.net>
Date: Sat, 21 Aug 1999 10:12:18 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Sascha Zapf <nc-zapfsa AT netcologne DOT de>
CC: DJGPP Mailing List <djgpp AT delorie DOT com>,
"Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Subject: Re: TV Patch
References: <37BC9598 DOT FCC6D93A AT netcologne DOT de>
Reply-To: djgpp AT delorie DOT com

Sascha Zapf wrote:
> 
> Thanx for the Patch....
> 
> But my Problem goes on...

<snip>

OK, I found the real problem - TVision does not recognize 
DOSish backslash '\', only UNIXish slashes '/' as directory 
separators. So when you pass "c:\\", it looks for last 
directory separator - strrchr() function looks for '/' and 
returns NULL... Then (size_t)(end - dir + 1) gives a _huge_
value... 

A very quick workaround - change "c:\\" to "c://" in your code.

Now about the real fix. Salvador, isn't somewhere in TV
function for converting backslashes to slashes? It should
go OK here. (Just I'm afraid that not only here, but in
many other places...)

Laurynas Biveinis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019