diff --git a/src/backend/utils/adt/int.c b/src/backend/utils/adt/int.c
index 041ac3d2ec8f8b54450fdc98ca0ac3c2f4cb0253..e5cc55516389830386c3bf10fa22afbe24fc12c0 100644
--- a/src/backend/utils/adt/int.c
+++ b/src/backend/utils/adt/int.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.28 2000/01/10 05:20:23 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.29 2000/01/10 05:23:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -90,8 +90,9 @@ int28in(char *intString)
 	{
 		if (sscanf(intString, "%hd", &result[slot]) != 1)
 			break;
-		while (*intString && *intString != ' ')
+		do
 			intString++;
+		while (*intString && *intString != ' ')
 	}
 	while (slot < INDEX_MAX_KEYS)
 		result[slot++] = 0;
diff --git a/src/backend/utils/adt/oid.c b/src/backend/utils/adt/oid.c
index 5ca8061339bc152310158ab30734a1de44556cc3..4ffd02028104211b902aa6d4a58d8690f32eee61 100644
--- a/src/backend/utils/adt/oid.c
+++ b/src/backend/utils/adt/oid.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.29 2000/01/10 04:36:34 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.30 2000/01/10 05:23:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -41,8 +41,9 @@ oid8in(char *oidString)
 	{
 		if (sscanf(oidString, "%u", &result[slot]) != 1)
 			break;
-		while (*oidString && *oidString != ' ')
+		do
 			oidString++;
+		while (*oidString && *oidString != ' ')
 	}
 	while (slot < INDEX_MAX_KEYS)
 		result[slot++] = 0;