mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-27 04:34:34 +03:00
(get_paragraph): fix of pointer difference.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
6ce562381c
commit
9ac22ec544
@ -184,7 +184,8 @@ get_paragraph (WEdit * edit, long p, long q, int indent, int *size)
|
||||
p++;
|
||||
*s = edit_get_byte (edit, p);
|
||||
}
|
||||
*size = (unsigned long) s - (unsigned long) t;
|
||||
*size = (unsigned long) (s - t);
|
||||
/* FIXME: all variables related to 'size' should be fixed */
|
||||
t[*size] = '\n';
|
||||
return t;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user