1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/devel/cutils/files/patch-ab

43 lines
702 B
Plaintext
Raw Normal View History

--- src/cobfusc/cobfusc.c.orig Wed Mar 26 07:58:16 1997
+++ src/cobfusc/cobfusc.c Fri Aug 11 15:36:09 2000
@@ -342,25 +342,31 @@
/*
* Convert the string to uppercase.
*/
- while (*p)
- *p = toupper(*p++);
+ while (*p) {
+ *p = toupper(*p);
+ p++;
+ }
break;
case 2:
/*
* Convert the string to lowercase.
*/
- while (*p)
- *p = tolower(*p++);
+ while (*p) {
+ *p = tolower(*p);
+ p++;
+ }
break;
default:
/*
* Convert the string to random case.
*/
- while (*p)
+ while (*p) {
if (RANDOM(2) == 1)
- *p = toupper(*p++);
+ *p = toupper(*p);
else
- *p = tolower(*p++);
+ *p = tolower(*p);
+ p++;
+ }
}
return buf;