Comment 18 for bug 107668

Revision history for this message
Michele (mikelito) wrote : Re: [Bug 107668] Re: Setting an invalid mount point can make a removeable media unaccessible

seems fine. is there a reason why you create a copy of the string?

text = gtk_editable_get_chars (editable, 0, -1);
char *p;
p=text;
while (*p) { if (*p=='/') *p='_'; ++p; }

should work as well, if textorig is not needed anywhere else

cheers
michele

On Thu, 2007-06-21 at 22:50 +0000, Nicolas Valcárcel wrote:
> i'm attaching a new patch, i'm not sure about it, please check it and
> correct. I'm not really comfortable with C
>
> ** Attachment added: "patch"
> http://launchpadlibrarian.net/8156007/gnome-mount-0.5.patch
>