Skip to content

Commit 28712a3

Browse files
committed
Fix the regression in e6108a0.
I stupidly write a string concatenation incorrectly.
1 parent 4b43545 commit 28712a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platforms/unix/vm/sqUnixMain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ getAttributeString(sqInt id)
535535
osName = malloc(strlen(info.sysname) + strlen(info.release) + 2);
536536
strcpy(osName,info.sysname);
537537
osName[strlen(info.sysname)] = ' ';
538-
strcat(osName,info.release);
538+
strcpy(osName + strlen(info.sysname) + 1,info.release);
539539
return osName;
540540
#endif
541541
}

0 commit comments

Comments
 (0)