summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-07-09 08:36:07 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-07-09 08:36:07 +0200
commit8c965e479160677842331d2aba7a82d51055e539 (patch)
tree8ab3d3c4947f47b4435ba0b6a4ec1894a28fdcae /src/phmain.c
parent6294ef0c1f946a839c21f87b890299d357e2c3e7 (diff)
src/phmain.c: constify a variable
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phmain.c b/src/phmain.c
index a1e4484..258b267 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -194,7 +194,7 @@ int main( int argc, char **argv )
}
else if(((strcmp(argv[i],"/d")==0)||(strcmp(argv[i],"-d")==0)) &&(i+1<argc))
{
- int len=strlen(argv[i+1]);
+ const int len=strlen(argv[i+1]);
if(argv[i+1][len-1]=='\\' || argv[i+1][len-1]=='/')
{
params.recup_dir=(char *)MALLOC(len + strlen(DEFAULT_RECUP_DIR) + 1);