Fix error display
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2023 by PedroEdiaz <ppedroediaz (at) gmail.com>.
|
||||
Copyright (c) 2024 by PedroEdiaz <ppedroediaz (at) gmail.com>.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
||||
|
||||
|
||||
2
README
2
README
@@ -15,4 +15,4 @@ USAGE:
|
||||
kill -CONT <proc> // Play
|
||||
|
||||
LICENSE:
|
||||
0BSD Copyright (c) 2023 by pedroediaz <ppedroediaz (at) gmail.com>
|
||||
0BSD Copyright (c) 2024 by PedroEdiaz <ppedroediaz (at) gmail.com>
|
||||
|
||||
@@ -29,7 +29,7 @@ void weite_err( char * s )
|
||||
p=s;
|
||||
while( *p )
|
||||
++p;
|
||||
write( STDERR_FILENO, p, p-s );
|
||||
write( STDERR_FILENO, s, p-s );
|
||||
}
|
||||
|
||||
int main( int argc, char * argv[] )
|
||||
@@ -44,7 +44,7 @@ int main( int argc, char * argv[] )
|
||||
{
|
||||
weite_err( "Usage: " );
|
||||
weite_err( argv[0] );
|
||||
weite_err( " /dev/sr0 (<card>) (<device>)" );
|
||||
weite_err( " /dev/sr0 (<card>) (<device>)\n" );
|
||||
goto err0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user