aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlp Aker2012-08-17 00:12:50 -0400
committerAlp Aker2012-08-17 00:12:50 -0400
commit93044f7b87430236c1cb661d9e122f9d65cb24d1 (patch)
treea500b7ebc3a355d9e12f15f78cad633cc7a5b0ac /src
parent9851e4a5b46ad224c36b3a590f8b5bffbe09ee43 (diff)
downloademacs-93044f7b87430236c1cb661d9e122f9d65cb24d1.tar.gz
emacs-93044f7b87430236c1cb661d9e122f9d65cb24d1.zip
* nsfont.m (ns_ascii_average_width): Send initWithFormat selector
to an allocated instance of NSString, not to the class itself.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsfont.m2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5e400b20a31..a3ae89b86f2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-08-17 Alp Aker <alp.tekin.aker@gmail.com>
2
3 * nsfont.m (ns_ascii_average_width): Send initWithFormat selector
4 to an allocated instance of NSString, not to the class itself.
5
12012-08-17 Juanma Barranquero <lekktu@gmail.com> 62012-08-17 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * makefile.w32-in (C_CTYPE_H): New macro. 8 * makefile.w32-in (C_CTYPE_H): New macro.
diff --git a/src/nsfont.m b/src/nsfont.m
index fdb6e0c33c1..1f8d28cd238 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -275,7 +275,7 @@ ns_ascii_average_width (NSFont *sfont)
275 for (ch = 0; ch < 95; ch++) 275 for (ch = 0; ch < 95; ch++)
276 chars[ch] = ' ' + ch; 276 chars[ch] = ' ' + ch;
277 277
278 ascii_printable = [NSString initWithFormat: @"%s", chars]; 278 ascii_printable = [[NSString alloc] initWithFormat: @"%s", chars];
279 } 279 }
280 280
281#ifdef NS_IMPL_COCOA 281#ifdef NS_IMPL_COCOA