]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typos that broke OS X build.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jul 2012 16:58:37 +0000 (09:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jul 2012 16:58:37 +0000 (09:58 -0700)
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.

src/ChangeLog
src/nsterm.m

index 804da9c2eefd1583eac0799bf8609b2b8c41fad6..2d661f2be09a3e62d002d16a05c0e99e46f16ccb 100644 (file)
@@ -1,3 +1,11 @@
+2012-07-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
 2012-07-12  Glenn Morris  <rgm@gnu.org>
 
        * src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
index 686b748c14ee912ce3b5c4e5436ffb44b0a7991d..0fceb873ae2d6d90f79cc41937e4cb86dc5a9ff6 100644 (file)
@@ -416,7 +416,7 @@ ns_timeout (int usecs)
   /* Keep waiting until past the time wakeup.  */
   while (1)
     {
-      EMACS_TIME now = current_emacs_time ();
+      EMACS_TIME timeout, now = current_emacs_time ();
       if (EMACS_TIME_LE (wakeup, now))
        break;
       timeout = sub_emacs_time (wakeup, now);
@@ -1446,8 +1446,8 @@ ns_get_color (const char *name, NSColor **col)
       int i;
       scaling = strlen(name+start) / 3;
       for (i = 0; i < 3; i++)
-       snprintf (hex + i * (scaling + 1), "%.*s/", scaling,
-                 name + start + i * scaling);
+       sprintf (hex + i * (scaling + 1), "%.*s/", scaling,
+                name + start + i * scaling);
       hex[3 * (scaling + 1) - 1] = '\0';
     }