summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:58:10 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:58:10 +0200
commitd55173e3a77dd905833ed5f1037e3e60790321a0 (patch)
treee3d43b1fef692779f8c3e726d3076ad4cc10d8fc /src/intrf.c
parent6f3aed396c8a14190a4b52a340b9217e1b6598fa (diff)
turn off a compiler warning in screen_buffer_add()
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrf.c b/src/intrf.c
index a55b5ce..9528bbc 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -79,7 +79,7 @@ int screen_buffer_add(const char *_format, ...)
{
const unsigned int dst_current_len=strlen(intr_buffer_screen[intr_nbr_line]);
const char *end=strchr(start,'\n');
- unsigned int nbr=(end==NULL ? strlen(start) : end-start);
+ unsigned int nbr=(end==NULL ? strlen(start) : (unsigned int)(end-start));
if(nbr > BUFFER_LINE_LENGTH-dst_current_len)
nbr=BUFFER_LINE_LENGTH-dst_current_len;