Changeset 417e1f6 in mainline


Ignore:
Timestamp:
2023-07-24T16:22:54Z (10 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
ticket/834-toolchain-update
Children:
c1a7a65
Parents:
e7dc3a4
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-24 16:18:55)
git-committer:
Vojtech Horky <vojtech.horky@…> (2023-07-24 16:22:54)
Message:

Ensure buffer is really big enough

File:
1 edited

Legend:

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

    re7dc3a4 r417e1f6  
    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.