shithub: scc

Download patch

ref: 6a7602ccce7d0a6489c101866c8372c99cac43d8
parent: f25ac60f427a1eb55971e17921c72ef2afa7e8f8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Dec 7 04:36:48 EST 2017

[lib/c] Fix atexit() errno value

--- a/lib/c/src/atexit.c
+++ b/lib/c/src/atexit.c
@@ -9,7 +9,7 @@
 atexit(void (*fun)(void))
 {
 	if (_exitn == _ATEXIT_MAX) {
-		errno = ENOMEN;
+		errno = ENOMEM;
 		return -1;
 	}
 	_exitf[_exitn++] = fun;