aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-07-12 09:58:37 -0700
committerPaul Eggert2012-07-12 09:58:37 -0700
commitb300b1f42470b266e6eaabb05529a21d53e45ca0 (patch)
tree0c9bb6e3f54951abdda4a943a9a0088c89748bba /src
parentdebd9b27a2337d527c24089f67f2cc5a4bb05ef3 (diff)
downloademacs-b300b1f42470b266e6eaabb05529a21d53e45ca0.tar.gz
emacs-b300b1f42470b266e6eaabb05529a21d53e45ca0.zip
Fix typos that broke OS X build.
Reported by Randal L. Schwartz in <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>. * nsterm.m (ns_timeout): Add missing local decl. (ns_get_color): snprintf -> sprintf, to fix typo.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/nsterm.m6
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 804da9c2eef..2d661f2be09 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12012-07-12 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix typos that broke OS X build.
4 Reported by Randal L. Schwartz in
5 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>.
6 * nsterm.m (ns_timeout): Add missing local decl.
7 (ns_get_color): snprintf -> sprintf, to fix typo.
8
12012-07-12 Glenn Morris <rgm@gnu.org> 92012-07-12 Glenn Morris <rgm@gnu.org>
2 10
3 * src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h: 11 * src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
diff --git a/src/nsterm.m b/src/nsterm.m
index 686b748c14e..0fceb873ae2 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -416,7 +416,7 @@ ns_timeout (int usecs)
416 /* Keep waiting until past the time wakeup. */ 416 /* Keep waiting until past the time wakeup. */
417 while (1) 417 while (1)
418 { 418 {
419 EMACS_TIME now = current_emacs_time (); 419 EMACS_TIME timeout, now = current_emacs_time ();
420 if (EMACS_TIME_LE (wakeup, now)) 420 if (EMACS_TIME_LE (wakeup, now))
421 break; 421 break;
422 timeout = sub_emacs_time (wakeup, now); 422 timeout = sub_emacs_time (wakeup, now);
@@ -1446,8 +1446,8 @@ ns_get_color (const char *name, NSColor **col)
1446 int i; 1446 int i;
1447 scaling = strlen(name+start) / 3; 1447 scaling = strlen(name+start) / 3;
1448 for (i = 0; i < 3; i++) 1448 for (i = 0; i < 3; i++)
1449 snprintf (hex + i * (scaling + 1), "%.*s/", scaling, 1449 sprintf (hex + i * (scaling + 1), "%.*s/", scaling,
1450 name + start + i * scaling); 1450 name + start + i * scaling);
1451 hex[3 * (scaling + 1) - 1] = '\0'; 1451 hex[3 * (scaling + 1) - 1] = '\0';
1452 } 1452 }
1453 1453