projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8264fbe
)
signed to unsigned before comparing
author
Nikolas Garofil
<garo@dunaldi.garofil.be>
Sat, 16 Jan 2010 03:01:49 +0000
(
04:01
+0100)
committer
Nikolas Garofil
<garo@dunaldi.garofil.be>
Sat, 16 Jan 2010 03:01:49 +0000
(
04:01
+0100)
src/core.c
patch
|
blob
|
history
diff --git
a/src/core.c
b/src/core.c
index
0c173da
..
7b50030
100644
(file)
--- a/
src/core.c
+++ b/
src/core.c
@@
-1250,7
+1250,7
@@
int extract_variable_text_internal(struct text_object *retval, const char *const
}
/* copy variable to buffer */
- len = (p - s > text_buffer_size-1) ? text_buffer_size-1 : (p - s);
+ len = ((unsigned int) (p - s) > text_buffer_size - 1) ? text_buffer_size - 1 : (unsigned int) (p - s);
strncpy(buf, s, len);
buf[len] = '\0';