aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Henty <onepoint@starurchin.org>2013-01-10 21:10:21 +0000
committerJeremy Henty <onepoint@starurchin.org>2013-01-10 21:10:21 +0000
commit2679808d70e4defa68cfeb3cdc9783e09fd58676 (patch)
tree796d4c17c1e3a3661138b119a3c5c7d31a8fa17b
parentbb5ecc4708a095cbcb29b8feeda2200a88fba3a0 (diff)
uicmd.cc: *UIcmd_make_save_filename(): clarify the loop logic
-rw-r--r--src/uicmd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 2d4134d1..0a1510d2 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -848,8 +848,8 @@ static char *UIcmd_make_save_filename(const DilloUrl *url)
dFree(free2);
/* Replace %20 and ' ' with '_' */
- for (n1 = n2 = name; *n1; n1++) {
- *n2++ =
+ for (n1 = n2 = name; *n1; n1++, n2++) {
+ *n2 =
(n1[0] == ' ')
? '_' :
(n1[0] == '%' && n1[1] == '2' && n1[2] == '0')