git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel/heap - Debug fixes
[tpg/acess2.git]
/
Kernel
/
lib.c
diff --git
a/Kernel/lib.c
b/Kernel/lib.c
index
c4251a6
..
472351c
100644
(file)
--- a/
Kernel/lib.c
+++ b/
Kernel/lib.c
@@
-357,7
+357,7
@@
int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args)
// String - Null Terminated Array
case 's':
p = va_arg(args, char*); // Get Argument
- if( !
CheckString(p) )
p = "(inval)"; // Avoid #PFs
+ if( !
p || !CheckString(p) )
p = "(inval)"; // Avoid #PFs
printString:
if(!p) p = "(null)";
len = strlen(p);
UCC
git Repository :: git.ucc.asn.au