Fix error display

This commit is contained in:
pedroediaz
2024-02-03 01:02:26 +06:00
parent 0061d8dda9
commit 1e8a7ddd26
3 changed files with 4 additions and 4 deletions

View File

@@ -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. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

2
README
View File

@@ -15,4 +15,4 @@ USAGE:
kill -CONT <proc> // Play kill -CONT <proc> // Play
LICENSE: LICENSE:
0BSD Copyright (c) 2023 by pedroediaz <ppedroediaz (at) gmail.com> 0BSD Copyright (c) 2024 by PedroEdiaz <ppedroediaz (at) gmail.com>

View File

@@ -29,7 +29,7 @@ void weite_err( char * s )
p=s; p=s;
while( *p ) while( *p )
++p; ++p;
write( STDERR_FILENO, p, p-s ); write( STDERR_FILENO, s, p-s );
} }
int main( int argc, char * argv[] ) int main( int argc, char * argv[] )
@@ -44,7 +44,7 @@ int main( int argc, char * argv[] )
{ {
weite_err( "Usage: " ); weite_err( "Usage: " );
weite_err( argv[0] ); weite_err( argv[0] );
weite_err( " /dev/sr0 (<card>) (<device>)" ); weite_err( " /dev/sr0 (<card>) (<device>)\n" );
goto err0; goto err0;
} }