mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
fix printf format string in src/xymodem.c
This commit is contained in:
parent
3af4c5591e
commit
d239cb44e8
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ int xymodem_send(int sio, const char *filename, modem_mode_t mode)
|
|||
rc = -1;
|
||||
if (strlen(filename) > 977) break; /* hdr block overrun */
|
||||
p = stpncpy(hdr, filename, 1024) + 1;
|
||||
p += sprintf(p, "%ld %lo %o", len, stat.st_mtime, stat.st_mode);
|
||||
p += sprintf(p, "%zu %lo %o", len, stat.st_mtime, stat.st_mode);
|
||||
|
||||
if (xmodem_1k(sio, hdr, p - hdr, 0) < 0) break; /* hdr with metadata */
|
||||
if (xmodem_1k(sio, buf, len, 1) < 0) break; /* xmodem file */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue