Skip to content

Return pointer to local variable #1

@uscmule

Description

@uscmule

If you have hard to find crashes using this code, this is probably why:

char *read_server(int client) {
// read data from the client
char input[1024] = { 0 };
......

return input;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions