]> code.delx.au - gnu-emacs/blobdiff - src/xsmfns.c
* nsterm.m (sendEvent:): Skip mouse moved if no dialog and no Emacs
[gnu-emacs] / src / xsmfns.c
index 0af196d21606d4f973c10eddfe2007c3aa50e68c..cb7122202df7f71a56e2f6130ffb9bb719209999 100644 (file)
@@ -221,7 +221,7 @@ smc_save_yourself_CB (SmcConn smcConn,
   props[props_idx]->name = xstrdup (SmRestartCommand);
   props[props_idx]->type = xstrdup (SmLISTofARRAY8);
   /* /path/to/emacs, --smid=xxx --no-splash --chdir=dir ... */
-  if (initial_argc > INT_MAX - 3)
+  if (INT_MAX - 3 < initial_argc)
     memory_full (SIZE_MAX);
   i = 3 + initial_argc;
   props[props_idx]->num_vals = i;