diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-04-24 13:35:23 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-04-24 13:35:23 +0000 | 
| commit | 40448f0abe91bdbf79ac52a1293251f66ee0f84c (patch) | |
| tree | 4632a1b45fc7dd3a63acea2e6715fcfe403818eb | |
| parent | 14f1f3396766cd47abd9f45f2a0dfe767460b1d3 (diff) | |
Allow UTF-8 in local name
| -rw-r--r-- | hcid/storage.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/hcid/storage.c b/hcid/storage.c index f6475134..95ca8bd3 100644 --- a/hcid/storage.c +++ b/hcid/storage.c @@ -114,10 +114,10 @@ int write_local_name(bdaddr_t *bdaddr, char *name)  	memset(str, 0, sizeof(str));  	for (i = 0; i < 248 && name[i]; i++) -		if (isprint(name[i])) -			str[i] = name[i]; -		else +		if (name[i] < 32 || name[i] == 127)  			str[i] = '.'; +		else +			str[i] = name[i];  	ba2str(bdaddr, addr);  	snprintf(filename, PATH_MAX, "%s/%s/config", STORAGEDIR, addr); | 
