diff options
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1537,6 +1537,9 @@ static char *get_modprobe(void) case -1: goto fail; case 1024: goto fail; /* Partial read. Wierd */ } + if (ret[strlen(ret)-1]=='\n') + ret[strlen(ret)-1]=0; + close(procfile); return ret; } fail: |