summaryrefslogtreecommitdiff
path: root/uclient-fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'uclient-fetch.c')
-rw-r--r--uclient-fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 0c7a123..1c66ac6 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -608,13 +608,13 @@ int main(int argc, char **argv)
case L_USER:
if (!strlen(optarg))
break;
- username = strdup(optarg);
+ username = strdupa(optarg);
memset(optarg, '*', strlen(optarg));
break;
case L_PASSWORD:
if (!strlen(optarg))
break;
- password = strdup(optarg);
+ password = strdupa(optarg);
memset(optarg, '*', strlen(optarg));
break;
case L_USER_AGENT: