Fixed file reading for --ems-melody-file-send
[gsmperl.git] / GSM / examples / commandline / gsmcmd
index e290be3..51eb93e 100755 (executable)
@@ -208,6 +208,7 @@ my($keyword,$arg)=@_;
 
        local (*F);
        open F, $arg;
+       local $/=undef();
        my $ems_melody_file_data = <F>;
        close F;
        warn "EMS iMelody file format not recognized, wrapping anyway"