Skip to content
Snippets Groups Projects
Commit 94c6048f authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Print entry ID with format %ld, not %d

parent 536aab01
Branches
Tags
No related merge requests found
......@@ -138,7 +138,7 @@ main( int argc, char **argv )
len = strlen( line );
if ( buf == NULL || *buf == '\0' ) {
if (!isdigit((unsigned char) line[0])) {
sprintf( idbuf, "%d\n", id + 1 );
sprintf( idbuf, "%ld\n", id + 1 );
idlen = strlen( idbuf );
} else {
id = atol(line) - 1;
......
......@@ -138,7 +138,7 @@ main( int argc, char **argv )
len = strlen( line );
if ( buf == NULL || *buf == '\0' ) {
if (!isdigit((unsigned char) line[0])) {
sprintf( idbuf, "%d\n", id + 1 );
sprintf( idbuf, "%ld\n", id + 1 );
idlen = strlen( idbuf );
} else {
id = atol(line) - 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment