OSDN Git Service

(none)
authorryuz <ryuz>
Sun, 4 May 2008 09:15:09 +0000 (09:15 +0000)
committerryuz <ryuz>
Sun, 4 May 2008 09:15:09 +0000 (09:15 +0000)
sample/ia32/pcat/sample.c

index 6644a2f..4fadd89 100755 (executable)
@@ -93,7 +93,8 @@ void print_state(int num, char *text)
        {
                msg->text[4+i] = text[i];
        }
-       msg->text[i] = '\n';
+       msg->text[4+i]   = '\n';
+       msg->text[4+i+1] = '\0';
        
        /*
        strcpy(&msg->text[4], text);