diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-22 17:13:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-22 17:13:35 +0200 |
commit | cae5f92ba8be4da36b4d870a7db9ed929b2f1745 (patch) | |
tree | 6541919ed9a9b872c6058f8d4951ab1f846cee4c /src/libcoopgamma.c | |
parent | fix makefile (diff) | |
download | libcoopgamma-cae5f92ba8be4da36b4d870a7db9ed929b2f1745.tar.gz libcoopgamma-cae5f92ba8be4da36b4d870a7db9ed929b2f1745.tar.bz2 libcoopgamma-cae5f92ba8be4da36b4d870a7db9ed929b2f1745.tar.xz |
Fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libcoopgamma.c')
-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; |