Fixed broken sprintf() invocation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36087 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
61fd0c7f97
commit
16b4b2c13b
@ -44,7 +44,7 @@ perror(const char *s)
|
||||
colon = ": ";
|
||||
|
||||
if (strerror_r(errno, buffer, sizeof(buffer)) != 0)
|
||||
sprintf("Unknown error %ld", errno);
|
||||
snprintf(buffer, sizeof(buffer), "Unknown error %d", errno);
|
||||
|
||||
fprintf(stderr, "%s%s%s\n", s, colon, buffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user