Digital Uni x with both DEC cc and gcc) behaviour of modifying an
lvalue on the left side an d then using it on the right side of an
assignment. Since this code modifies the
dbname parameter, it was changing, for example, "dbname=template1"
into "dbname =emplate1".
David Smith Programmer P
}
} else {
while (*ptr && *ptr != ' ' && *ptr != '\t') {
- *ptr++ = tolower(*ptr);
+ *ptr = tolower(*ptr);
+ ptr++;
}
}
}
}
} else {
while (*ptr && *ptr != ' ' && *ptr != '\t') {
- *ptr++ = tolower(*ptr);
+ *ptr = tolower(*ptr);
+ ptr++;
}
}
}