Commit b300b1f4 authored by Paul Eggert's avatar Paul Eggert
Browse files

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.
parent debd9b27
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:
......
......@@ -416,7 +416,7 @@ Updated by Christian Limpach (chris@nice.ch)
/* 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,7 +1446,7 @@ Free a pool and temporary objects it refers to (callable from C)
int i;
scaling = strlen(name+start) / 3;
for (i = 0; i < 3; i++)
snprintf (hex + i * (scaling + 1), "%.*s/", scaling,
sprintf (hex + i * (scaling + 1), "%.*s/", scaling,
name + start + i * scaling);
hex[3 * (scaling + 1) - 1] = '\0';
}
......
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