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 e460eb5..3fdcab8 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, count++; if (next) { - pos = buf_size - ((long)next - (long)buf) - 1; + pos = buf_size - ((intptr_t)next - (intptr_t)buf) - 1; memmove(buf, next, pos); } else |