X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8d3655be5a5c41b1f0a9985bcdb614693fce67e5..96c8b65ebd79360fdcf81786461805bb4377ca11:/src/xsmfns.c diff --git a/src/xsmfns.c b/src/xsmfns.c index 0af196d216..cb7122202d 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c @@ -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;