On Sun, 19 May 2019 11:38:52 +0200
Hello aitor,

aitor_czr <[email protected]> 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 <[email protected]>
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to