lkml.org 
[lkml]   [2006]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux 2.6.16.6
Date
On Monday 17 April 2006 23:12, you wrote:
> @@ -352,6 +353,10 @@ static char *make_block_name(struct gend
> return NULL;
> strcpy(name, block_str);
> strcat(name, disk->disk_name);
> + /* ewww... some of these buggers have / in name... */
> + s = strchr(name, '/');
> + if (s)
> + *s = '!';
> return name;
> }

Is only one / possible, or better something like this?

/* ewww... some of these buggers have / in name... */
s = name;
while ((s = strchr(s, '/')) != NULL)
*s = '!';

--
Greetings Michael.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-04-18 00:51    [W:0.808 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site