projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f81b238
)
Fix deStrnlen fall-back implementation
author
Pyry Haulos
<phaulos@google.com>
Thu, 7 Jul 2016 21:58:52 +0000
(14:58 -0700)
committer
Pyry Haulos
<phaulos@google.com>
Thu, 7 Jul 2016 21:58:52 +0000
(14:58 -0700)
Fixes #423
framework/delibs/debase/deString.c
patch
|
blob
|
history
diff --git
a/framework/delibs/debase/deString.c
b/framework/delibs/debase/deString.c
index
e6290f0
..
a9d3a3e
100644
(file)
--- a/
framework/delibs/debase/deString.c
+++ b/
framework/delibs/debase/deString.c
@@
-185,7
+185,7
@@
size_t deStrnlen (const char* string, size_t maxSize)
return strnlen_s(string, maxSize);
#else
size_t len = 0;
- while (len < maxSize
||
string[len] != 0)
+ while (len < maxSize
&&
string[len] != 0)
++len;
return len;
#endif