Changeset f5762c7 in mainline


Ignore:
Timestamp:
2023-10-22T13:56:55Z (13 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eea807
Parents:
2298fc4
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-24 16:18:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 13:56:55)
Message:

Ensure buffer is really big enough

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/proto/vt100.c

    r2298fc4 rf5762c7  
    4141#include "vt100.h"
    4242
    43 #define MAX_CONTROL  20
     43/** Buffer size when creating actual VT100 commands.
     44 *
     45 * This is absurdly large but since we accept numbers via sysarg_t,
     46 * we make it big enough for the largest value to be on the safe side
     47 * (and to silence compiler too).
     48 *
     49 * TODO: find out if VT100 has some hard limits or perhaps simply cut-out
     50 * values larger than 16 bits or something.
     51 */
     52#define MAX_CONTROL 64
    4453
    4554typedef enum {
Note: See TracChangeset for help on using the changeset viewer.