summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Romanov <drizt@land.ru>2012-10-15 12:41:36 -0400
committerSteve Dickson <steved@redhat.com>2012-10-15 13:07:41 -0400
commita16f4a13677d13b0aae9327a3b9e8414470b7927 (patch)
treed7794397316fe59fac899dddced15552c91a06ca
parentb010d126bbb8265e5717e596711d754baec11e6c (diff)
downloadnfs-utils-a16f4a13677d13b0aae9327a3b9e8414470b7927.tar.gz
nfs-utils-a16f4a13677d13b0aae9327a3b9e8414470b7927.tar.xz
nfs-utils-a16f4a13677d13b0aae9327a3b9e8414470b7927.zip
Exportfs crashes with long path
Acked-by: Bruce Fields <bfields@fieldses.org> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/export/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/export/export.c b/support/export/export.c
index 4fda30a..0257903 100644
--- a/support/export/export.c
+++ b/support/export/export.c
@@ -357,7 +357,7 @@ strtoint(char *str)
static int
export_hash(char *str)
{
- int num = strtoint(str);
+ unsigned int num = strtoint(str);
return num % HASH_TABLE_SIZE;
}