Skip to content

Commit

Permalink
Use for cycle instead of while for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 10, 2013
1 parent 179190f commit 8e829e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgammu/misc/coding/coding.c
Original file line number Diff line number Diff line change
Expand Up @@ -1585,11 +1585,11 @@ void DecodeISO88591QuotedPrintable(unsigned char *dest, const unsigned char *src
/* Make Unicode string from UTF8 string */
void DecodeUTF8QuotedPrintable(unsigned char *dest, const char *src, int len)
{
int i=0,j=0,z;
int i,j=0,z;
unsigned char mychar[10];
wchar_t ret;

while (i<=len) {
for (i = 0; i<=len; ) {
z=0;
while (TRUE) {
if (src[z*3+i] != '=' || z*3+i+3>len ||
Expand Down

0 comments on commit 8e829e1

Please sign in to comment.