Explorar el Código

Fix DecodeOnCalcName to work like strncpy (fill remaining characters with \0).

git-svn-id: file:///var/svn/tigccpp/trunk@1171 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler hace 17 años
padre
commit
75d724f8a8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tigcc/ld-tigcc/main.c

+ 1 - 1
tigcc/ld-tigcc/main.c

@@ -106,7 +106,7 @@ static void DecodeOnCalcName(char *Dest, const char *Src)
 		else if (*Src)
 			*(Dest++) = *(Src++);
 		else
-			break;
+			*(Dest++) = 0;
 	} while (++Count < MAX_NAME_LEN);
 }