:: Re: [DNG] simple-netaid from scratc…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: s
Fecha:  
A: aitor_czr
Cc: dng
Asunto: Re: [DNG] simple-netaid from scratch
On Sun, 19 May 2019 11:38:52 +0200
Hello aitor,

aitor_czr <aitor_czr@???> wrote:

> Have a look at the server side:
>
> https://git.devuan.org/aitor_czr/simple-netaid/blob/master/backend_src/server.c


char buffer[512];
(...)

You are using in some places 'sizeof(buffer)' in 'fgets()' and such..
Your buffer has a fixed size..

/* Somewere else, probably in the header file..*/
#define BUFFER_SIZE 512;
(...)

char buffer[ BUFFER_SIZE ];
(...)
status = fgets ( buffer, BUFFER_SIZE, fp );

its my 2 cents :)

Regards,

--
s@po <tuxd3v@???>