Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecdf95f

Browse files
committed
This patch fixes the undefined (according to C) and erroneous (under
Digital Uni x with both DEC cc and gcc) behaviour of modifying anlvalue on the left side an d then using it on the right side of anassignment. Since this code modifies the dbname parameter, it was changing, for example, "dbname=template1" into "dbname =emplate1".David Smith Programmer P
1 parent5c431eb commitecdf95f

File tree

1 file changed

+5
-3
lines changed
  • src/interfaces/perl5

1 file changed

+5
-3
lines changed

‎src/interfaces/perl5/Pg.xs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*-------------------------------------------------------
22
*
3-
* $Id: Pg.xs,v 1.9 1998/09/27 19:12:23 mergl Exp $
3+
* $Id: Pg.xs,v 1.10 1998/12/13 02:50:20 momjian Exp $
44
*
55
* Copyright (c) 1997, 1998 Edmund Mergl
66
*
@@ -215,7 +215,8 @@ PQconnectdb(conninfo)
215215
}
216216
}else {
217217
while (*ptr&&*ptr!=' '&&*ptr!='\t') {
218-
*ptr++=tolower(*ptr);
218+
*ptr=tolower(*ptr);
219+
ptr++;
219220
}
220221
}
221222
}
@@ -732,7 +733,8 @@ connectdb(conninfo)
732733
}
733734
}else {
734735
while (*ptr&&*ptr!=' '&&*ptr!='\t') {
735-
*ptr++=tolower(*ptr);
736+
*ptr=tolower(*ptr);
737+
ptr++;
736738
}
737739
}
738740
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp