diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcoopgamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 3421798..345909f 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1289,7 +1289,7 @@ char* libcoopgamma_get_socket_file(const char* restrict method, const char* rest return NULL; p = strchr(raw, '\0') - 1; - if (*p != '\n') + if ((p < raw) || (*p != '\n')) { errno = EBADMSG; goto fail; |