121 |
|
break; |
122 |
|
partlen = strlen(part); |
123 |
|
memcpy(p, part, partlen); |
124 |
< |
p += partlen; |
124 |
> |
|
125 |
> |
/* Replace spaces and dots with underscores. */ |
126 |
> |
while (partlen-- > 0) { |
127 |
> |
if (*p == ' ' || *p == '.') |
128 |
> |
*p = '_'; |
129 |
> |
p++; |
130 |
> |
} |
131 |
> |
|
132 |
|
*p++ = '.'; |
133 |
|
} |
134 |
|
va_end(ap); |
135 |
|
*--p = '\0'; |
129 |
– |
|
130 |
– |
/* Replace spaces with underscores. */ |
131 |
– |
for (p = name; *p != '\0'; p++) { |
132 |
– |
if (*p == ' ') |
133 |
– |
*p = '_'; |
134 |
– |
} |
136 |
|
|
137 |
|
/* Stretch the stats array if necessary. */ |
138 |
|
if (num_stats >= alloc_stats) { |