diff options
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index e460eb542c..3fdcab85e6 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -215,7 +215,7 @@ int fast_readline(int fd, char *buf, int buf_size, void *parameters, | |||
215 | count++; | 215 | count++; |
216 | if (next) | 216 | if (next) |
217 | { | 217 | { |
218 | pos = buf_size - ((long)next - (long)buf) - 1; | 218 | pos = buf_size - ((intptr_t)next - (intptr_t)buf) - 1; |
219 | memmove(buf, next, pos); | 219 | memmove(buf, next, pos); |
220 | } | 220 | } |
221 | else | 221 | else |