6 Nov
2002
6 Nov
'02
3:54 p.m.
"Martin Wilck" <Martin.Wilck(a)Fujitsu-Siemens.com> wrote:
+/****************************************************************************** + * netbios_char (INTERNAL) + */ +static WCHAR netbios_char ( WCHAR wc ) +{ + static const WCHAR special[] = {'!','@','#','$','%','^','&','\'',')','(','-','_','{','}','~'}; + static const WCHAR deflt = '_'; + int i; + + if ( isalnumW ( wc ) ) return wc; + for ( i = 0; i < sizeof (special); i++ ) + if ( wc == special[i] ) return wc; + return deflt; +}
Shouldn't be sizeof(special) above divided by sizeof(WCHAR)? -- Dmitry.
8442
Age (days ago)
8442
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Timoshkov -
Martin Wilck