List:Internals« Previous MessageNext Message »
From:Yuri Dario Date:December 6 2000 7:10am
Subject:Re: rmdir() failing under OS/2
View as plain text  
Hi Monty,

>+     char *pos=strend(path);
>+     if (pos > path && pos[-1] == FN_LIBCHAR)
>+       *--pos=0;

but path is declared as 'const char *': so it is supposed to be
read-only memory.
Shouldn't be better to use strdup() and modify the copy?


Bye,

	Yuri Dario

/*
 * member of TeamOS/2 - Italy
 * http://www.quasarbbs.net/yuri
 */


Thread
rmdir() failing under OS/2Yuri Dario5 Dec
  • rmdir() failing under OS/2Michael Widenius6 Dec
    • Re: rmdir() failing under OS/2Yuri Dario6 Dec
      • Re: rmdir() failing under OS/2Michael Widenius6 Dec
      • Re: rmdir() failing under OS/2Michael Widenius6 Dec