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
>
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: launchpadlibrar ian.net/ 8156007/ gnome-mount- 0.5.patch
> 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://
>