Skip to content

warning: the use of 'tmpnam' is dangerous, better use `mkstemp' #4

@athajaerel

Description

@athajaerel

/home/me/go/pkg/mod/github.com/rosbit/luago@v0.5.2/loslib.c:172: warning: the use of 'tmpnam' is dangerous, better use 'mkstemp'

Food for thought.

This actually appears to be on line 124:
#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }


$ go version
go version go1.18.1 linux/amd64

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