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:
Ingo Weinhold 2010-04-08 17:06:56 +00:00
parent 61fd0c7f97
commit 16b4b2c13b

View File

@ -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);
}