Переглянути джерело

Fix minor null termination issue

Default (blank) topic is now properly null-terminated.
master
achmizs 10 роки тому
джерело
коміт
a02c297a09
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      IRCClient/IRCClientChannel.m

+ 1
- 1
IRCClient/IRCClientChannel.m Переглянути файл

@@ -81,7 +81,7 @@

_name = name;
_encoding = NSUTF8StringEncoding;
_topic = [NSData dataWithBytes:@"".UTF8String length:0];
_topic = [NSData dataWithBytes:@"".UTF8String length:1];
_modes = @"";
}

Завантаження…
Відмінити
Зберегти