Index: scumm/scumm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v
retrieving revision 1.23
diff -u -d -b -u -r1.23 scumm.h
--- scumm/scumm.h	19 Sep 2002 23:49:38 -0000	1.23
+++ scumm/scumm.h	20 Sep 2002 19:53:45 -0000
@@ -220,7 +220,7 @@
 	void drawBits();
 	void printChar(int chr);
 	void printCharOld(int chr);
-	int getSpacing(char chr, byte *charset);
+	int getSpacing(byte chr, byte *charset);
 	int getStringWidth(int a, byte *str, int pos);
 	void addLinebreaks(int a, byte *str, int pos, int maxwidth);
 };
Index: scumm/string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.17
diff -u -d -b -u -r1.17 string.cpp
--- scumm/string.cpp	19 Sep 2002 23:49:38 -0000	1.17
+++ scumm/string.cpp	20 Sep 2002 19:53:45 -0000
@@ -71,6 +71,7 @@
 		}
 		width += getSpacing(chr, ptr);
 	}
+
 	return width;
 }
 
@@ -125,6 +126,7 @@
 
 		if (chr == ' ')
 			lastspace = pos - 1;
+
 		curw += getSpacing(chr, ptr);
 		if (lastspace == -1)
 			continue;
@@ -1019,20 +1021,20 @@
 }
 
 // do spacing for variable width old-style font
-int CharsetRenderer::getSpacing(char chr, byte *ptr)
+int CharsetRenderer::getSpacing(byte chr, byte *charset)
 {
-	int spacing;
+	int spacing = 0;
 	
 	if (_vm->_features & GF_OLD256) {
-		spacing = *(ptr - 11 + chr);
+		spacing = *(charset - 11 + chr);
 	} else {
-		int offs = READ_LE_UINT32(ptr + chr * 4 + 4);
+		int offs = READ_LE_UINT32(charset + chr * 4 + 4);
 		if (offs) {
-			spacing = ptr[offs];
-			if (ptr[offs + 2] >= 0x80) {
-				spacing += ptr[offs + 2] - 0x100;
+			spacing = charset[offs];
+			if (charset[offs + 2] >= 0x80) {
+				spacing += charset[offs + 2] - 0x100;
 			} else {
-				spacing += ptr[offs + 2];
+				spacing += charset[offs + 2];
 			}
 		}
 	}
