Commit 93044f7b authored by Alp Aker's avatar Alp Aker

* nsfont.m (ns_ascii_average_width): Send initWithFormat selector

to an allocated instance of NSString, not to the class itself.
parent 9851e4a5
2012-08-17 Alp Aker <alp.tekin.aker@gmail.com>
* nsfont.m (ns_ascii_average_width): Send initWithFormat selector
to an allocated instance of NSString, not to the class itself.
2012-08-17 Juanma Barranquero <lekktu@gmail.com>
* makefile.w32-in (C_CTYPE_H): New macro.
......
......@@ -275,7 +275,7 @@ static void ns_glyph_metrics (struct nsfont_info *font_info,
for (ch = 0; ch < 95; ch++)
chars[ch] = ' ' + ch;
ascii_printable = [NSString initWithFormat: @"%s", chars];
ascii_printable = [[NSString alloc] initWithFormat: @"%s", chars];
}
#ifdef NS_IMPL_COCOA
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment